]> granicus.if.org Git - php/commit
Fixed bug #75218
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 24 Sep 2017 13:24:51 +0000 (15:24 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 16 Jun 2018 10:41:03 +0000 (12:41 +0200)
commitd04917c7b361fd07e098fe29ae931fb6fac1d9e0
treea37ad12b79f04abb6b6cf9efe9500da573eb00fd
parent0bd3fecbcbd37f63063155163f64e0591f4761ea
Fixed bug #75218

I've introduced a new CompileError type, from which ParseError
inherits. These errors are not parse errors in the narrow sense
of the term, even though they happen to be generated during
parsing in our implementation. Additionally reusing the ParseError
class for this purpose would change existing error messages (if
the exception is not caught) from a "Fatal error:" to a "Parse
error:" prefix, and also the error kind from E_COMPILE_ERROR to
E_PARSE.
NEWS
UPGRADING
Zend/tests/bug75218.phpt [new file with mode: 0644]
Zend/zend_compile.c
Zend/zend_compile.h
Zend/zend_exceptions.c
Zend/zend_exceptions.h
Zend/zend_language_parser.y