]> granicus.if.org Git - php/commit
Fix T_NUM_STRING negation
authorNikita Popov <nikic@php.net>
Sun, 11 Dec 2016 12:31:37 +0000 (13:31 +0100)
committerNikita Popov <nikic@php.net>
Sun, 11 Dec 2016 12:33:25 +0000 (13:33 +0100)
commit2c70581338257cba48991e313309839737c94c64
treef94198f694946c00f037b340b7cc0e857f57617e
parent8b82e2c2fe2d7fa232af5e32059037f5839e06e6
Fix T_NUM_STRING negation

T_NUM_STRING follows the rules of symtable numeric string
conversion. If the offset isn't an integer under those rules, it
is treated as a string. This should apply to negated T_NUM_STRINGs
as well.
Zend/tests/neg_num_string.phpt [new file with mode: 0644]
Zend/zend_compile.c
Zend/zend_compile.h
Zend/zend_language_parser.y