mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
stop break on condition from bugging out
This commit is contained in:
parent
3c36fb99f2
commit
75e2e7ddf5
3 changed files with 7 additions and 2 deletions
|
@ -67,6 +67,12 @@ PHPDBG_BREAK(address) /* {{{ */
|
||||||
|
|
||||||
PHPDBG_BREAK(on) /* {{{ */
|
PHPDBG_BREAK(on) /* {{{ */
|
||||||
{
|
{
|
||||||
|
if (input && input->argc > 2) {
|
||||||
|
phpdbg_error(
|
||||||
|
"Unquoted complex expression detected, please \"quote\" complex expressions");
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
switch (param->type) {
|
switch (param->type) {
|
||||||
case STR_PARAM:
|
case STR_PARAM:
|
||||||
phpdbg_set_breakpoint_expression(param->str, param->len TSRMLS_CC);
|
phpdbg_set_breakpoint_expression(param->str, param->len TSRMLS_CC);
|
||||||
|
|
1
test.php
1
test.php
|
@ -26,7 +26,6 @@ function test() {
|
||||||
|
|
||||||
$dbg = new phpdbg();
|
$dbg = new phpdbg();
|
||||||
|
|
||||||
|
|
||||||
var_dump(
|
var_dump(
|
||||||
$dbg->isGreat("PHP Rocks !!"));
|
$dbg->isGreat("PHP Rocks !!"));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue