]> granicus.if.org Git - php/commit
Unify checks for binary operator errors for ct eval
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 1 Apr 2020 11:02:58 +0000 (13:02 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 1 Apr 2020 12:42:58 +0000 (14:42 +0200)
commit1ed132e2e55112ab43125b45cbf3066072876c73
treef2c4f067bafef044d7e9b7da1ef9c0e1e9a15f1d
parent56b18d478ed9e40afd66860e82017d5c2017eac1
Unify checks for binary operator errors for ct eval

Move everything into one function and share it with opcache.
This fixes some discrepancies.
Zend/tests/constant_expressions_exceptions_001.phpt
Zend/tests/runtime_compile_time_binary_operands.phpt
Zend/zend_compile.c
Zend/zend_compile.h
ext/opcache/Optimizer/zend_optimizer.c