]> granicus.if.org Git - php/commit
Don't replace self::class with __CLASS__ during const eval
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 4 Jan 2019 10:16:59 +0000 (11:16 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 4 Jan 2019 10:16:59 +0000 (11:16 +0100)
commit9b3fda43424bb9044afcbf8490e38906c46851a3
tree53aa68083cb16841f885d733e3705e94d2d5f4a5
parent6aa55a28b54d6ec56b51d29fe8b65e5e7a444834
Don't replace self::class with __CLASS__ during const eval

Instead delay this until const expression compilation. Otherwise
self::class and [self::class] have different behavior...
Zend/tests/class_name_as_scalar_error_007.phpt
Zend/zend_compile.c