stop break on condition from bugging out

This commit is contained in:
krakjoe 2013-11-20 20:29:14 +00:00
parent 3c36fb99f2
commit 75e2e7ddf5
3 changed files with 7 additions and 2 deletions

View file

@ -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);

View file

@ -26,7 +26,6 @@ function test() {
$dbg = new phpdbg(); $dbg = new phpdbg();
var_dump( var_dump(
$dbg->isGreat("PHP Rocks !!")); $dbg->isGreat("PHP Rocks !!"));