From: krakjoe Date: Mon, 18 Nov 2013 23:49:57 +0000 (+0000) Subject: correction to print stack X-Git-Tag: php-5.6.0alpha1~110^2~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a37de13a201da6c3b0221d0a5fd3ebea0b04b31c;p=php correction to print stack --- diff --git a/phpdbg_print.c b/phpdbg_print.c index ad54c05cec..8929fb0faf 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!"); }