View Issue Details

IDProjectCategoryView StatusLast Update
0000174XdebugUncategorizedpublic2009-12-27 16:54
Reporterbeandog Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionnot fixable 
Summary0000174: 'echo' command does not work in eval function
Description

When doing an 'eval' through the DBGp protocol in XDebug, valid echo commands are not executed and return error messages.

TagsNo tags attached.
Operating SystemWindows XP Pro SP2
PHP Version5.0.5

Activities

derick

2009-12-27 16:54

administrator   ~0001211

You're correct that this doesn't work; however, internally Xdebug uses Zend's zend_do_string() which always prepends "return " to the string-to-be-parsed to be able to return the value of evaluated statements to be passed back. Obviously the string:
return echo "too\n";
creates a parse error. I can't fix this unless I repeat much of the Zend API functions, and I don't think it's worth it. Also, print "too\n"; works just fine (As it's a statement for PHP and returns something).

Issue History

Date Modified Username Field Change
2006-04-19 17:00 beandog New Issue
2009-12-27 16:54 derick Note Added: 0001211
2009-12-27 16:54 derick Status new => resolved
2009-12-27 16:54 derick Resolution open => not fixable
2009-12-27 16:54 derick Assigned To => derick
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized