[php-src] Issue #10451: DEBUG: Suppress Fatal error on arginfo / zpp mismatch detection
| From: | zeriyoshi | Date: | Thu, 26 Jan 2023 04:38:06 +0000 |
| Subject: | [php-src] Issue #10451: DEBUG: Suppress Fatal error on arginfo / zpp mismatch detection | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-243570@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/10451
Author: zeriyoshi
### Description
Debug built PHP 8.2 raises a Fatal error when there is a mismatch between function and method
arginfo and the actual arguments parsed by Zend Parse Parameter.
This is a useful feature for debugging, but makes it difficult to get a core dump in situations
where arginfo is not properly declared for
ext-grpc, ext-protobuf,
ext-redis, etc.
Therefore, I propose to add ZEND_SUPPRESS_ARGINFO_ZPP_MISMATCH like
USE_ZEND_ALLOC or ZEND_DONT_UNLOAD_MODULES to provide a way to bypass
these checks.
This change is only valid for debug builds and does not apply to release built PHP. For this reason,
we believe the RFC is unnecessary.
Implementation: #10424