php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42746 '\u' char in single quotes gets interepreted.
Submitted: 2007-09-24 10:34 UTC Modified: 2007-10-29 08:43 UTC
From: mahesh dot vemula at in dot ibm dot com Assigned: tony2001 (profile)
Status: Closed Package: *Unicode Issues
PHP Version: 6CVS-2007-09-24 (SNAP) OS: Linux, Windows XP
Private report: No CVE-ID: None
 [2007-09-24 10:34 UTC] 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;"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-02 16:58 UTC] andrei@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This is by design.

See "Language Modifications" section in:

http://cvs.php.net/viewvc.cgi/php-src/README.UNICODE?revision=1.8
 [2007-10-03 18:38 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 13:01:29 2024 UTC