Bug #66582 [Asn]: zend_multibyte tests fail
Edit report at https://bugs.php.net/bug.php?id=66582&edit=1
ID: 66582
Updated by: yohgaki@php.net
Reported by: stas@php.net
Summary: zend_multibyte tests fail
Status: Assigned
Type: Bug
Package: mbstring related
PHP Version: 5.6Git-2014-01-26 (Git)
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
We should not allow setting unsupported encoding to internal_encoding in first place. I don't
know why this was allowed. I'll do something for this.
Previous Comments:
------------------------------------------------------------------------
[2014-01-30 08:26:23] yohgaki@php.net
zend.multibyte=On
zend.script_encoding=UTF-8
mbstring.internal_encoding=CP932
CP932 is Shift_JIS variant and Shift_JIS or like cannot be used as internal_encoding. So this
configuration is wrong by specification.
------------------------------------------------------------------------
[2014-01-30 01:39:52] stas@php.net
Just so I understand - why these settings are insane?
zend.multibyte=On
zend.script_encoding=UTF-8
mbstring.internal_encoding=CP932
------------------------------------------------------------------------
[2014-01-27 10:41:47] yohgaki@php.net
Comment for myself as reminder.
These tests should belong to Zend from PHP 5.4.
I guess new zend multibyte code is not considering insane settings well.
------------------------------------------------------------------------
[2014-01-26 23:07:44] stas@php.net
Description:
------------
The following tests fail on Travis CI:
zend multibyte (2) [ext/mbstring/tests/zend_multibyte-02.phpt]
zend multibyte (6) [ext/mbstring/tests/zend_multibyte-06.phpt]
zend multibyte (7) [ext/mbstring/tests/zend_multibyte-07.phpt]
zend multibyte (9) [ext/mbstring/tests/zend_multibyte-09.phpt]
zend multibyte (10) [ext/mbstring/tests/zend_multibyte-10.phpt]
zend multibyte (11) [ext/mbstring/tests/zend_multibyte-11.phpt]
zend multibyte (12) [ext/mbstring/tests/zend_multibyte-12.phpt]
Typical messages are:
001+ php: Zend/zend_language_scanner.l:129: encoding_filter_script_to_internal: Assertion
`internal_encoding && zend_multibyte_check_lexer_compatibility(internal_encoding)'
failed.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66582&edit=1
Thread (6 messages)