improve output from eval()

This commit is contained in:
krakjoe 2013-11-10 16:47:39 +00:00
parent 5f6c416b14
commit c6f443db2e
2 changed files with 6 additions and 2 deletions

View File

@ -135,10 +135,13 @@ static PHPDBG_COMMAND(run) { /* {{{ */
static PHPDBG_COMMAND(eval) { /* {{{ */
zval retval;
if (expr) {
if (zend_eval_stringl((char*)expr, expr_len-1, &retval, "eval()'d code" TSRMLS_CC) == SUCCESS) {
printf("Success\n");
printf("Success: ");
zend_print_zval_r(
&retval, 0 TSRMLS_CC);
printf("\n");
zval_dtor(&retval);
}
} else {

View File

@ -3,4 +3,5 @@ echo "Hello World\n";
if (isset($greeting)) {
echo $greeting;
}
return true;
?>