]> granicus.if.org Git - php/commit
Detect invalid uses of parent:: during compilation
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 4 Jan 2019 10:55:41 +0000 (11:55 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 4 Jan 2019 10:55:41 +0000 (11:55 +0100)
commita9e6667817c38f22f4645ec5b4e5c6b0e4b928fa
tree12f29126298bda333f598c284d0aab2cdab1b715
parent447b3470de43bf2435ad5a138a964c2f2c4fc4a6
Detect invalid uses of parent:: during compilation

We already detect the case where we're entirely outside a class --
now also check whether there actually is a parent.

This is a minor BC break, in that code that was never executed
might have previously contained an invalid parent:: reference without
generating an error.
UPGRADING
Zend/tests/bug75573.phpt
Zend/tests/class_name_as_scalar_error_002.phpt
Zend/zend_compile.c