]> granicus.if.org Git - php/commitdiff
Put stack_verify in error buffer too
authorBob Weinand <bobwei9@hotmail.com>
Wed, 8 Oct 2014 21:44:22 +0000 (23:44 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Wed, 8 Oct 2014 21:44:22 +0000 (23:44 +0200)
phpdbg_cmd.c

index abb41e4ae9f03686f72f22c4ebc87e27d082c857..69f8eeef8c418aba5864ec6e84eb3def8ba8e7dc 100644 (file)
@@ -777,9 +777,9 @@ PHPDBG_API int phpdbg_stack_execute(phpdbg_param_t *stack, zend_bool allow_async
                                        return FAILURE;
                                }
 
-                               phpdbg_activate_err_buf(0 TSRMLS_CC);
-                               phpdbg_free_err_buf(TSRMLS_C);
                                if (phpdbg_stack_verify(handler, &top TSRMLS_CC) == SUCCESS) {
+                                       phpdbg_activate_err_buf(0 TSRMLS_CC);
+                                       phpdbg_free_err_buf(TSRMLS_C);
                                        return handler->handler(top TSRMLS_CC);
                                }
                        }