History log of /PHP-8.2/Zend/tests/undef_var_in_verify_return.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 1748b811 13-Oct-2020 Nikita Popov

Fix handling of throwing undef var in verify return

If we have an undefined variable and null is not accepted by the
return type, we want to throw just the undef var error.

In t

Fix handling of throwing undef var in verify return

If we have an undefined variable and null is not accepted by the
return type, we want to throw just the undef var error.

In this case this lead to an infinite loop, because we overwrite
the exception opline in SAVE_OPLINE and it does not get reset
when chaining into a previous exception. Add an assertiong to
catch this case earlier.

show more ...