summaryrefslogtreecommitdiff
path: root/Zend/tests/undef_var_in_verify_return.phpt
Commit message (Collapse)AuthorAgeFilesLines
* Fix handling of throwing undef var in verify returnNikita Popov2020-10-131-0/+23
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.