#42746 [Opn->Asn]: '\u' char in single quotes gets interepreted.

From: Date: Tue, 02 Oct 2007 10:22:23 +0000
Subject: #42746 [Opn->Asn]: '\u' char in single quotes gets interepreted.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118064@lists.php.net to get a copy of this message
 ID:               42746
 Updated by:       tony2001@php.net
 Reported By:      mahesh dot vemula at in dot ibm dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         *Unicode Issues
 Operating System: Linux, Windows XP
 PHP Version:      6CVS-2007-09-24 (SNAP)
-Assigned To:      
+Assigned To:      tony2001


Previous Comments:
------------------------------------------------------------------------

[2007-09-25 09:46:20] mahesh dot vemula at in dot ibm dot com

Updating the correct "Version".

------------------------------------------------------------------------

[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) "&#4660;"
unicode(6) "\u1234"


Actual result:
--------------
unicode(1) "&#4660;"
unicode(1) "&#4660;"


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42746&edit=1


Thread (5 messages)

« previous php.bugs (#118064) next »