Browse Source

fix list not working when exec is set but not executing

pull/550/head
krakjoe 13 years ago
parent
commit
a0151e91a5
  1. 2
      phpdbg_list.c
  2. 2
      test.php

2
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;
}

2
test.php

@ -1,4 +1,6 @@
<?php
include 'web-bootstrap.php';
class phpdbg {
public function isGreat($greeting = null) {
printf(

Loading…
Cancel
Save