]> granicus.if.org Git - php/commit
Fix self::class inside constant in global scope
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 4 Jan 2019 08:52:04 +0000 (09:52 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 4 Jan 2019 08:52:04 +0000 (09:52 +0100)
commit41af1e6781386cf540926ba9d1ff59a3402f8e01
treec8b3077d989bead4534bb17c3d8bfb8f60050bac
parentcb009b12a54c3dbb0e10b79c6ca77db8736d55b9
Fix self::class inside constant in global scope

Previously this triggered an assertion failure. The behavior is
not quite correct, in that self::class should generate an exception
if there is no self, but returns an empty string here. Fixing that
would be a bit too intrusive for the 7.2 branch.
Zend/tests/self_class_const_in_unknown_scope.phpt [new file with mode: 0644]
Zend/zend_compile.c