zend_eval_string() question

php.internals

Rasmus Lerdorf

23 years ago
Could anybody explain the difference between calling: zend_eval_string(source, NULL, description) and zval retval; zend_eval_string(source, &retval, description) It looks to me like if a retval zval is provided there is some sort of implicit return value pasted onto the script, but it means that a simple string like: echo "123"; causes a parse error whereas: print "123"; works just fine. That's pretty confusing. -Rasmus