Doc #71746 [Opn->Csd]: UTF-8 codepoint escape sequences allow arbitrary number of leading zeros

From: Date: Mon, 11 Apr 2016 08:03:30 +0000
Subject: Doc #71746 [Opn->Csd]: UTF-8 codepoint escape sequences allow arbitrary number of leading zeros
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13405@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71746&edit=1 ID: 71746 Updated by: salathe@php.net Reported by: temp at temp dot ru Summary: UTF-8 codepoint escape sequences allow arbitrary number of leading zeros -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: 7.0.4 -Assigned To: +Assigned To: salathe Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2016-04-11 07:59:32] salathe@php.net Automatic comment from SVN on behalf of salathe Revision: http://svn.php.net/viewvc/?view=revision&revision=338989 Log: unicode escape sequence allows uppercase and any number of digits (doc bug #71746) ------------------------------------------------------------------------ [2016-04-10 17:41:42] temp at temp dot ru changing package to doc ------------------------------------------------------------------------ [2016-03-08 21:28:55] ajf@php.net Note that the language specification is explicit here, it says "Implementations MUST support leading zeroes", and specifies that hexadecimal digits can be uppercase or lowercase: https://github.com/php/php-langspec/blob/2888f580bd887e6a37e0821beca714843fc095e1/spec/09-lexical-structure.md#double-quoted-string-literals ------------------------------------------------------------------------ [2016-03-08 21:25:30] ajf@php.net This is a documentation bug. It was fully my intention to allow however many leading zeros you like, and whatever capitalisation you like. ------------------------------------------------------------------------ [2016-03-08 21:19:17] yohgaki@php.net However, ES6 seems to have the same spec. https://mathiasbynens.be/notes/javascript-escapes#unicode-code-point IMO, this should be fixed as it only introduces complexity for validations. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=71746 -- Edit this bug report at https://bugs.php.net/bug.php?id=71746&edit=1

« previous php.doc.bugs (#13405) next »