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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mahesh dot vemula at in dot ibm dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sun Dec 22 01:01:30 2024 UTC