com php-src: fix list not working when exec is set but not executing: phpdbg_list.c test.php

From: Date: Sun, 17 Nov 2013 15:57:49 +0000
Subject: com php-src: fix list not working when exec is set but not executing: phpdbg_list.c test.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74888@lists.php.net to get a copy of this message
Commit: a0151e91a5b315ceb607c84518fad94eecef866d Author: krakjoe <joe.watkins@live.co.uk> Sun, 17 Nov 2013 15:57:49 +0000 Parents: 17cc942e7c195150f636e716d3fadda01020ba0b Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a0151e91a5b315ceb607c84518fad94eecef866d Log: fix list not working when exec is set but not executing Changed paths: M phpdbg_list.c M test.php Diff: diff --git a/phpdbg_list.c b/phpdbg_list.c index 35de246...0770bab 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 3733eda..02c58b5 100644 --- a/test.php +++ b/test.php @@ -1,4 +1,6 @@ <?php +include 'web-bootstrap.php'; + class phpdbg { public function isGreat($greeting = null) { printf(

« previous php.cvs (#74888) next »