|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66582 zend_multibyte tests fail
Submitted: 2014-01-26 23:07 UTC Modified: 2015-02-03 05:18 UTC
Avg. Score:3.3 ± 0.5
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: Assigned: yohgaki (profile)
Status: Closed Package: mbstring related
PHP Version: 5.6Git-2014-01-26 (Git) OS:
Private report: No CVE-ID: None
 [2014-01-26 23:07 UTC]
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-26 23:08 UTC]
-Assigned To: +Assigned To: yohgaki
 [2014-01-27 10:41 UTC]
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-30 01:39 UTC]
Just so I understand - why these settings are insane?

 [2014-01-30 08:26 UTC]

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 08:33 UTC]
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.
 [2015-02-03 05:18 UTC]
-Status: Assigned +Status: Closed
 [2015-02-03 05:18 UTC]
Fixed in master (PHP7)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 11:01:27 2024 UTC