diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2014-04-14 16:26:27 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2014-04-14 16:26:27 +0200 |
commit | 2dad85ae61bbc2817798cb98680abfabd9e19d33 (patch) | |
tree | 3d94aa00d190e22b60e581ee07aaf7c51db32232 /phpdbg_watch.c | |
parent | 8c22352e885986096f0293bddf57feddbdeac335 (diff) | |
download | php-git-2dad85ae61bbc2817798cb98680abfabd9e19d33.tar.gz |
Return SUCCESS and do not confuse use with errors
Diffstat (limited to 'phpdbg_watch.c')
-rw-r--r-- | phpdbg_watch.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |