[php-src] PR #12840: Add some missing null checks
| From: | nielsdos | Date: | Thu, 30 Nov 2023 19:42:10 +0000 |
| Subject: | [php-src] PR #12840: Add some missing null checks | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24377@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12840
Author: nielsdos
I decided to go with the
if (ex && (ZEND_CALL_INFO(ex) & ZEND_CALL_CODE)) {
variant after all as it is consistent in error message with the existing errors; otherwise with
if (!ex || (ZEND_CALL_INFO(ex) & ZEND_CALL_CODE)) { the error is inconsistent.