From d8fe645db444e54fcc8b2555c08a5021c17ca2d3 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Tue, 4 Aug 2015 00:00:10 +0200 Subject: Fix valgrind errors in phpdbg Revert "We cannot safely assume that all op array will be refcount 0 after execution" This reverts commit b6936adb58288a0606ed847802d9226cddb41e2b. This change turns out to not have been a clever idea and was causing more weirdness than it helped... --- sapi/phpdbg/phpdbg_parser.y | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sapi/phpdbg/phpdbg_parser.y') diff --git a/sapi/phpdbg/phpdbg_parser.y b/sapi/phpdbg/phpdbg_parser.y index f25749ceed..3b2392e48a 100644 --- a/sapi/phpdbg/phpdbg_parser.y +++ b/sapi/phpdbg/phpdbg_parser.y @@ -184,6 +184,10 @@ static int yyerror(const char *msg) { } int phpdbg_do_parse(phpdbg_param_t *stack, char *input) { + if (!*input) { + return 0; + } + phpdbg_init_lexer(stack, input); return yyparse(); -- cgit v1.2.1