mirror of
https://github.com/php/php-src.git
synced 2024-12-25 17:59:52 +08:00
improve output from eval()
This commit is contained in:
parent
5f6c416b14
commit
c6f443db2e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user