FAQ
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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedOct 16, '06 at 9:12p
activeOct 16, '06 at 9:12p
posts1
users1
websitephp.net

1 user in discussion

Bruce Bailey: 1 post

People

Translate

site design / logo © 2022 Grokbase