]> granicus.if.org Git - php/commitdiff
Return SUCCESS and do not confuse use with errors
authorBob Weinand <bobwei9@hotmail.com>
Mon, 14 Apr 2014 14:26:27 +0000 (16:26 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Mon, 14 Apr 2014 14:26:27 +0000 (16:26 +0200)
phpdbg_watch.c

index b0edcefb23774dee9c1d6e4318904646dd9d8d99..41c5788a19cec74839a430ed34f413740f7ad147 100644 (file)
@@ -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);