correction to print stack

This commit is contained in:
krakjoe 2013-11-18 23:49:57 +00:00
parent af20f1a474
commit a37de13a20

View file

@ -111,15 +111,12 @@ PHPDBG_PRINT(exec) /* {{{ */
PHPDBG_PRINT(stack) /* {{{ */
{
if (EG(in_execution)) {
if (PHPDBG_G(ops)) {
/* @TODO(anyone) make this better */
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);
}
} else {
phpdbg_error("Not Executing!");
}