mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
sapi/phpdbg: fixed ZPP type violation by using 'h' ZPP specifier instead of 'H'
This aligns the behaviour with what the stubs say. And even if one fixes the stubs the behaviour is not identical due to missing indirect handling. This indicates that using objects is never done, so do the easy fix of changing the ZPP specifier. Closes GH-20465
This commit is contained in:
4
NEWS
4
NEWS
@@ -22,6 +22,10 @@ PHP NEWS
|
||||
. Fixed bug GH-20442 (Phar does not respect case-insensitiveness of
|
||||
__halt_compiler() when reading stub). (ndossche, TimWolla)
|
||||
|
||||
- PHPDBG:
|
||||
. Fixed ZPP type violation in phpdbg_get_executable() and phpdbg_end_oplog().
|
||||
(Girgias)
|
||||
|
||||
- Standard:
|
||||
. Fix memory leak in array_diff() with custom type checks. (ndossche)
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user