Skip to content

Commit 414e7db

Browse files
committed
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
1 parent bf599d4 commit 414e7db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sapi/phpdbg/phpdbg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ PHP_FUNCTION(phpdbg_get_executable)
491491
HashTable *files = &PHPDBG_G(file_sources);
492492
HashTable files_tmp;
493493

494-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|H", &options) == FAILURE) {
494+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|h", &options) == FAILURE) {
495495
RETURN_THROWS();
496496
}
497497

@@ -585,7 +585,7 @@ PHP_FUNCTION(phpdbg_end_oplog)
585585
bool by_function = 0;
586586
bool by_opcode = 0;
587587

588-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|H", &options) == FAILURE) {
588+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|h", &options) == FAILURE) {
589589
RETURN_THROWS();
590590
}
591591

0 commit comments

Comments
 (0)