Is php_errmsg The Right Location for SyntaxErrors?

From: Date: Mon, 16 Oct 2006 21:11:57 +0000
Subject: Is php_errmsg The Right Location for SyntaxErrors?
Groups: php.internals 
Request: Send a blank email to internals+get-26071@lists.php.net to get a copy of this message
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

« previous php.internals (#26071) next »