summaryrefslogtreecommitdiff
path: root/phpdbg_prompt.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2014-10-23 17:19:26 +0200
committerBob Weinand <bobwei9@hotmail.com>2014-10-23 17:19:26 +0200
commitf0254826784df569bfd5ae8aca16a05b04a9aa2e (patch)
treeefa926b84f7c799a2f44aa0da48f76d5c2c557e6 /phpdbg_prompt.c
parent28dcdb2d130d63d4aece862d96fa27c440397705 (diff)
downloadphp-git-f0254826784df569bfd5ae8aca16a05b04a9aa2e.tar.gz
Add xml formatted deep dump of return value from ev
Diffstat (limited to 'phpdbg_prompt.c')
-rw-r--r--phpdbg_prompt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index 6c78ec6d13..82444fbf1d 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -707,6 +707,10 @@ PHPDBG_COMMAND(ev) /* {{{ */
zend_try {
if (zend_eval_stringl(param->str, param->len,&retval, "eval()'d code" TSRMLS_CC) == SUCCESS) {
phpdbg_xml("<eval %r>");
+ if (PHPDBG_G(flags) & PHPDBG_WRITE_XML) {
+ zval *zvp = &retval;
+ phpdbg_xml_var_dump(&zvp TSRMLS_CC);
+ }
zend_print_zval_r(&retval, 0 TSRMLS_CC);
phpdbg_xml("</eval>");
phpdbg_out("\n");