Bug #60306 [Opn]: zend-multibyte failed in 5.4
Edit report at https://bugs.php.net/bug.php?id=60306&edit=1
ID: 60306
Updated by: laruence@php.net
Reported by: laruence@php.net
Summary: zend-multibyte failed in 5.4
Status: Open
Type: Bug
Package: mbstring related
PHP Version: 5.4.0RC1
-Assigned To:
+Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
dmitry, plz look at this, thanks :)
Previous Comments:
------------------------------------------------------------------------
[2011-11-15 07:29:21] laruence@php.net
Description:
------------
same script, same ini, 5.4 result a wrong result .
Test script:
---------------
<?php
declare(encoding="cp936");
$s = "æ´ªä»ç";
var_dump($s);
?>
save the test script in fenc=cp936.
run:
php53 -dmbstring.internal_encoding=utf8 test.php
and
php54 -dmbstring.internal_encoding=utf8 test.php
Expected result:
----------------
string(9) "æ´ªä»ç"
Actual result:
--------------
5.3 works fine.
but 5.4 output:
string(3) "æ´ª"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60306&edit=1
Thread (8 messages)