From: Bob Weinand Date: Mon, 14 Apr 2014 14:26:27 +0000 (+0200) Subject: Return SUCCESS and do not confuse use with errors X-Git-Tag: php-5.6.0beta2~1^2~37^2~8^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2dad85ae61bbc2817798cb98680abfabd9e19d33;p=php Return SUCCESS and do not confuse use with errors --- diff --git a/phpdbg_watch.c b/phpdbg_watch.c index b0edcefb23..41c5788a19 100644 --- a/phpdbg_watch.c +++ b/phpdbg_watch.c @@ -400,8 +400,8 @@ static int phpdbg_watchpoint_parse_symtables(char *input, size_t len, int (*call zend_hash_add(EG(active_symbol_table), "this", sizeof("this"), &EG(This), sizeof(zval *), NULL); } - if (zend_is_auto_global(input, len TSRMLS_CC)) { - phpdbg_watchpoint_parse_input(input, len, &EG(symbol_table), 0, callback, 1 TSRMLS_CC); + if (zend_is_auto_global(input, len TSRMLS_CC) && phpdbg_watchpoint_parse_input(input, len, &EG(symbol_table), 0, callback, 1 TSRMLS_CC) != FAILURE) { + return SUCCESS; } return phpdbg_watchpoint_parse_input(input, len, EG(active_symbol_table), 0, callback, 0 TSRMLS_CC);