Re: [PHP-DEV] Why is 0x7F permitted in PHP identifiers?

2016-03-25 Thread Ryan Pallas
On Fri, Mar 25, 2016 at 1:25 PM, Scott Arciszewski wrote: > On Fri, Mar 25, 2016 at 10:20 AM, Andrea Faulds wrote: > > > Hi everyone, > > > > Identifiers in PHP source code (including variables names with $) conform > > to the regex

Re: [PHP-DEV] Why is 0x7F permitted in PHP identifiers?

2016-03-25 Thread Scott Arciszewski
On Fri, Mar 25, 2016 at 10:20 AM, Andrea Faulds wrote: > Hi everyone, > > Identifiers in PHP source code (including variables names with $) conform > to the regex /[_a-zA-Z\x7F-\xFF][_0-9a-zA-Z\x7F-\xFF]*/. Most of this regex > is pretty standard: it allows alphanumeric ASCII

[PHP-DEV] Why is 0x7F permitted in PHP identifiers?

2016-03-25 Thread Andrea Faulds
Hi everyone, Identifiers in PHP source code (including variables names with $) conform to the regex /[_a-zA-Z\x7F-\xFF][_0-9a-zA-Z\x7F-\xFF]*/. Most of this regex is pretty standard: it allows alphanumeric ASCII characters and underscores, plus any character with the 8th bit set (presumably