From a0151e91a5b315ceb607c84518fad94eecef866d Mon Sep 17 00:00:00 2001 From: krakjoe Date: Sun, 17 Nov 2013 15:57:49 +0000 Subject: [PATCH] fix list not working when exec is set but not executing --- phpdbg_list.c | 2 +- test.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/phpdbg_list.c b/phpdbg_list.c index 35de246ad0..0770babc97 100644 --- a/phpdbg_list.c +++ b/phpdbg_list.c @@ -33,7 +33,7 @@ ZEND_EXTERN_MODULE_GLOBALS(phpdbg); PHPDBG_LIST(lines) /* {{{ */ { - if (!PHPDBG_G(exec) || !zend_is_executing(TSRMLS_C)) { + if (!PHPDBG_G(exec) && !zend_is_executing(TSRMLS_C)) { phpdbg_error("Not executing, and execution context not set"); return SUCCESS; } diff --git a/test.php b/test.php index 3733eda7e2..02c58b50da 100644 --- a/test.php +++ b/test.php @@ -1,4 +1,6 @@