From 414e7db68ae32324a30a85c24bd6a6d13c6b03f3 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Wed, 12 Nov 2025 16:01:39 +0000 Subject: [PATCH] sapi/phpdbg: use 'h' ZPP specifier instead of'H' The stubs say array so in debug mode we get a ZPP violation assertion and even by fixing the stubs the behaviour is not identical due to missing indirect handling. This indicates using objects was never done, thus use the correct ZPP specifier --- sapi/phpdbg/phpdbg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index f27d87de84187..4d284a1ac23df 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -491,7 +491,7 @@ PHP_FUNCTION(phpdbg_get_executable) HashTable *files = &PHPDBG_G(file_sources); HashTable files_tmp; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "|H", &options) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "|h", &options) == FAILURE) { RETURN_THROWS(); } @@ -585,7 +585,7 @@ PHP_FUNCTION(phpdbg_end_oplog) bool by_function = 0; bool by_opcode = 0; - if (zend_parse_parameters(ZEND_NUM_ARGS(), "|H", &options) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "|h", &options) == FAILURE) { RETURN_THROWS(); }