mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix #77800 phpdbg segfaults on conditional breakpoints
This commit is contained in:
commit
903c1e379b
2 changed files with 18 additions and 1 deletions
2
NEWS
2
NEWS
|
@ -86,6 +86,8 @@ PHP NEWS
|
||||||
- phpdbg:
|
- phpdbg:
|
||||||
. Fixed bug #76596 (phpdbg support for display_errors=stderr). (kabel)
|
. Fixed bug #76596 (phpdbg support for display_errors=stderr). (kabel)
|
||||||
. Fixed bug #76801 (too many open files). (alekitto)
|
. Fixed bug #76801 (too many open files). (alekitto)
|
||||||
|
. Fixed bug #77800 (phpdbg segfaults on listing some conditional breakpoints).
|
||||||
|
(krakjoe)
|
||||||
|
|
||||||
- Sockets:
|
- Sockets:
|
||||||
. Fixed bug #67619 (Validate length on socket_write). (thiagooak)
|
. Fixed bug #67619 (Validate length on socket_write). (thiagooak)
|
||||||
|
|
|
@ -232,7 +232,7 @@ PHPDBG_API void phpdbg_export_breakpoints_to_string(char **str) /* {{{ */
|
||||||
} ZEND_HASH_FOREACH_END();
|
} ZEND_HASH_FOREACH_END();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(*str)[0]) {
|
if ((*str) && !(*str)[0]) {
|
||||||
*str = NULL;
|
*str = NULL;
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
@ -813,6 +813,21 @@ static inline void phpdbg_create_conditional_break(phpdbg_breakcond_t *brake, co
|
||||||
uint32_t cops = CG(compiler_options);
|
uint32_t cops = CG(compiler_options);
|
||||||
zval pv;
|
zval pv;
|
||||||
|
|
||||||
|
switch (param->type) {
|
||||||
|
case STR_PARAM:
|
||||||
|
case NUMERIC_FUNCTION_PARAM:
|
||||||
|
case METHOD_PARAM:
|
||||||
|
case NUMERIC_METHOD_PARAM:
|
||||||
|
case FILE_PARAM:
|
||||||
|
case ADDR_PARAM:
|
||||||
|
/* do nothing */
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
phpdbg_error("eval", "type=\"invalidparameter\"", "Invalid parameter type for conditional breakpoint");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_COND);
|
PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_COND);
|
||||||
new_break.hash = hash;
|
new_break.hash = hash;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue