Re: [VOTE][RFC] Unicode Codepoint Escape Syntax

From: Date: Wed, 10 Dec 2014 18:55:45 +0000
Subject: Re: [VOTE][RFC] Unicode Codepoint Escape Syntax
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-79535@lists.php.net to get a copy of this message
On Mon, Dec 8, 2014 at 3:51 PM, Andrea Faulds <ajf@ajf.me> wrote: > Please read through the RFC and cast your vote if you wish to do so: > > https://wiki.php.net/rfc/unicode_escape > > Voting starts today (2014-12-08) and ends in 10 days’ time (2014-12-18). > I was just updating my HHVM patch to match your PHP implementation and an issue came up. The following code, which is valid in PHP5: <?php echo json_decode("\"ma\u00F1ana\""); Will throw a fatal compiler error as "\u00F1" is an invalid unicode escape sequence. Since this represents an unnecessary BC break, I'd like to propose the error handling be modified to match \x, which is to say: Pass the value through unmodified. -Sara

« previous php.internals (#79535) next »