You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation should mention that passing an invalid/unsupported encoding name to this method will result in an E_WARNING being emitted (and no error code defined), regardless of the values set for intl.use_exceptions or intl.error_level.
The text was updated successfully, but these errors were encountered:
Girgias
changed the title
UConverter::transcode() behavior when an invalid encoding is specified
UConverter::transcode() always emits an E_WARNING when an invalid encoding is specified
Jan 14, 2025
Warning: UConverter::transcode(): Error setting encoding: 4 - U_FILE_ACCESS_ERROR in /home/dcarlier/test-intl.php on line 2
Warning: UConverter::transcode(): Error setting encoding: 4 - U_FILE_ACCESS_ERROR in /home/dcarlier/test-intl.php on line 3
The issue is that it always emits a warning instead of being silenced/promoted to exception depending on the intl error setting as far as I understand.
From manual page: https://php.net/uconverter.transcode
The documentation should mention that passing an invalid/unsupported encoding name to this method will result in an E_WARNING being emitted (and no error code defined), regardless of the values set for intl.use_exceptions or intl.error_level.
The text was updated successfully, but these errors were encountered: