New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
idn_to_ascii() argument error #2459
Comments
Could it be related to this ? .. https://forge.typo3.org/issues/87953 "Our Server run with CPanel on CentOS 6, and only an old version of Intl is installed, and the constant INTL_IDNA_VARIANT_UTS46 not exist." The production server I'm on is running CPanel on CentOS 6 :( Any work-around? |
I've looked at phpinfo() on the server under 'intl' (internationalisation support) and ICU version is 4.2.1 PHP docs for idn_to_ascii() for argument 3 are:
What do I do? |
Guess I need to update the ICU RPM on my server. In the meantime, how do I use the new |
I tried replacing
with
..but that doesn't seem to have worked :( |
Oops, realised with the above I was using the Guzzle 5.x method for setting defaults, so I fixed by just using Anyway, the bigger problem here seems to be that when the server's ICU version is < 4.6, Guzzle must detect this and not assume There is an undocumented PHP constant |
Proof the constant works!
|
I guess it's all irrelevant, and Guzzle requires PHP ^7.2.5, but |
Please also take a look at #2454 |
Great! Also, do you think the |
Feel free to close this issue - it's a duplicate of #2448 and other .. I was just externally processing as I was working out what was going wrong ;) |
Don't think so... We need PHP version check anyway because of the deprecation, yes. |
Guzzle version(s) affected: 6.5.0
Description
Since composer update to 6.5.0 (from 6.4.x) now getting this error:
Warning: idn_to_ascii() expects parameter 3 to be long, string given in /home/*****/public_html/vendor/guzzlehttp/guzzle/src/Client.php on line 221
3rd argument is INTL_IDNA_VARIANT_UTS46 constant, it would seem.
How to reproduce
Very simple requests .. GET/POST/PUT passing JSON to Salesforce REST API endpoints.
Additional context
PHP 5.6 in production
The text was updated successfully, but these errors were encountered: