Is php_errmsg The Right Location for SyntaxErrors?

php.internals

Bruce Bailey

19 years ago
Hi I discovered that php_errmsg is populated with the error text from zend_eval_string. Is this the correct way for my embedded-php program to access error text? code: if (zend_eval_string(buffer, 0, "embedded code" TSRMLS_CC) == FAILURE) { zval **php_errmsg; if (zend_hash_find(EG(active_symbol_table), "php_errormsg", sizeof("php_errormsg"), (void **)&php_errmsg) == SUCCESS) err_text = Z_STRVAL_PP(php_errmsg); } Thanks, Bruce P.S. If this is not the correct place to post these questions, please let me know. _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us