polyfill: symfony/polyfill-intl-idn 1.16 broken Guzzle for CentOS 6 (old ICU) servers?

FWIW, today the update to symfony/polyfill-intl-idn v1.16 (from 1.15) just completely broke all my Guzzle usages. This is on a server running CentOS 6 (and therefore old ICU - 4.2.1?) and PHP 7.3

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (6 by maintainers)

Most upvoted comments

It should be working out whether to use the native implementation or not based on the INTL_IDNA_VARIANT_UTS46 constant.

That seems like a better approach for a polyfill. Everyone uses the latest API, and the polyfill check the actual implementation to know if it should shim itself in-between, replace it completely or leave it. Problem is PHP. In PHP, without some monkey-patching in C, it is impossible to redefine a declared method or class. Therefore, we can’t really do a javascript-style polyfill.

CentOS 6.9.e19.12.3 x86_64 ICU 4.2.1-14.el6.x86_64 PHP 7.1.8