#42746 [Opn]: '\u' char in single quotes gets interepreted.
| From: | mahesh dot vemula at in dot ibm dot com | Date: | Tue, 25 Sep 2007 09:46:20 +0000 |
| Subject: | #42746 [Opn]: '\u' char in single quotes gets interepreted. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-117829@lists.php.net to get a copy of this message | ||
ID: 42746
User updated by: mahesh dot vemula at in dot ibm dot com
Reported By: mahesh dot vemula at in dot ibm dot com
Status: Open
Bug Type: *Unicode Issues
Operating System: Linux, Windows XP
-PHP Version: 6CVS-2007-09-24 (CVS)
+PHP Version: 6CVS-2007-09-24 (SNAP)
New Comment:
Updating the correct "Version".
Previous Comments:
------------------------------------------------------------------------
[2007-09-24 10:34:10] mahesh dot vemula at in dot ibm dot com
Description:
------------
'\u' escape sequence char in single quotes('') is being interpreted by
PHP6.
Reproduce code:
---------------
<?php
var_dump("\u1234");
var_dump('\u1234');
?>
Expected result:
----------------
unicode(1) "ሴ"
unicode(6) "\u1234"
Actual result:
--------------
unicode(1) "ሴ"
unicode(1) "ሴ"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42746&edit=1