php.net |  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
Votes:3
Avg. Score:3.3 ± 0.5
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: stas@php.net Assigned: yohgaki (profile)
Status: Closed Package: mbstring related
PHP Version: 5.6Git-2014-01-26 (Git) OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: stas@php.net
New email:
PHP Version: OS:

 

 [2014-01-26 23:07 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-26 23:08 UTC] stas@php.net
-Assigned To: +Assigned To: yohgaki
 [2014-01-27 10:41 UTC] 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-30 01:39 UTC] 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-30 08:26 UTC] 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 08:33 UTC] yohgaki@php.net
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] yohgaki@php.net
-Status: Assigned +Status: Closed
 [2015-02-03 05:18 UTC] yohgaki@php.net
Fixed in master (PHP7)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC