Re: [PHP-DEV] JSON unicode escape issue and new constants

2015-06-01 Thread Jakub Zelenka
Hi Yasuo, On Mon, Jun 1, 2015 at 1:10 AM, Yasuo Ohgaki wrote: > > > Any invalid chars as variable/property name should be handled as invalid. > > Valid variable name: '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*' > http://php.net/manual/en/language.variables.basics.php > > This violates JSON spec,

Re: [PHP-DEV] JSON unicode escape issue and new constants

2015-05-31 Thread Yasuo Ohgaki
Hi Jakub, On Fri, May 29, 2015 at 3:53 AM, Jakub Zelenka wrote: > There are two issues (reported bugs but not really bugs) in json_decode > related to \u escape. > > First one is > json_decode('{"\u": 1}'); > reported in https://bugs.php.net/bug.php?id=68546 > > That code result in fatal err

[PHP-DEV] JSON unicode escape issue and new constants

2015-05-28 Thread Jakub Zelenka
Hi, There are two issues (reported bugs but not really bugs) in json_decode related to \u escape. First one is json_decode('{"\u": 1}'); reported in https://bugs.php.net/bug.php?id=68546 That code result in fatal error due to using malformed property (private props starting with \0). I don't