[php-src] PR #11850: inc/dec with undefined vars
| From: | Girgias | Date: | Tue, 01 Aug 2023 15:00:02 +0000 |
| Subject: | [php-src] PR #11850: inc/dec with undefined vars | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23235@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11850
Author: Girgias
I split the first commit from #11759 into its own PR as it is not an OSS-fuzz fix, and like said it
is a pre-existing issue so maybe should be backported.
The rationale is that, considering undefined variables will become Errors at one point, the
behaviour of this and what happens now when the warning is converted to an exception should be,
IMHO, identical.
However, it seems that a lot of the VM handlers that use `
ZVAL_UNDEFINED_OP1()` do not
explicitly check if an exception is thrown from an undefined operand.