com php-src: correction to print stack: phpdbg_print.c
| From: | Bob Weinand | Date: | Mon, 18 Nov 2013 23:49:57 +0000 |
| Subject: | com php-src: correction to print stack: phpdbg_print.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74815@lists.php.net to get a copy of this message | ||
Commit: a37de13a201da6c3b0221d0a5fd3ebea0b04b31c
Author: krakjoe <joe.watkins@live.co.uk> Mon, 18 Nov 2013 23:49:57 +0000
Parents: af20f1a4741ce1202e9463c37b13a15bf2db7a35
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a37de13a201da6c3b0221d0a5fd3ebea0b04b31c
Log:
correction to print stack
Changed paths:
M phpdbg_print.c
Diff:
diff --git a/phpdbg_print.c b/phpdbg_print.c
index ad54c05..8929fb0 100644
--- a/phpdbg_print.c
+++ b/phpdbg_print.c
@@ -111,15 +111,12 @@ PHPDBG_PRINT(exec) /* {{{ */
PHPDBG_PRINT(stack) /* {{{ */
{
- if (EG(in_execution)) {
- if (PHPDBG_G(ops)) {
- /* @TODO(anyone) make this better */
- phpdbg_notice(
- "Stack in %s", zend_get_executed_filename(TSRMLS_C));
+ if (EG(in_execution) && EG(active_op_array)) {
+ phpdbg_notice(
+ "Stack in %s", zend_get_executed_filename(TSRMLS_C));
- phpdbg_print_function_helper(
- (zend_function*) EG(active_op_array) TSRMLS_CC);
- }
+ phpdbg_print_function_helper(
+ (zend_function*) EG(active_op_array) TSRMLS_CC);
} else {
phpdbg_error("Not Executing!");
}