Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26071 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70564 invoked by uid 1010); 16 Oct 2006 21:12:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 70549 invoked from network); 16 Oct 2006 21:12:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Oct 2006 21:12:03 -0000 Authentication-Results: pb1.pair.com header.from=bruce1828@hotmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bruce1828@hotmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.54.246.95 as permitted sender) X-PHP-List-Original-Sender: bruce1828@hotmail.com X-Host-Fingerprint: 65.54.246.95 bay0-omc1-s23.bay0.hotmail.com Windows 2000 SP4, XP SP1 Received: from [65.54.246.95] ([65.54.246.95:54864] helo=bay0-omc1-s23.bay0.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/21-04054-1A5F3354 for ; Mon, 16 Oct 2006 17:12:01 -0400 Received: from hotmail.com ([207.46.9.219]) by bay0-omc1-s23.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 16 Oct 2006 14:11:59 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 16 Oct 2006 14:11:58 -0700 Message-ID: Received: from 207.46.9.251 by by120fd.bay120.hotmail.msn.com with HTTP; Mon, 16 Oct 2006 21:11:57 GMT X-Originating-IP: [208.252.96.220] X-Originating-Email: [bruce1828@hotmail.com] X-Sender: bruce1828@hotmail.com To: internals@lists.php.net Bcc: Date: Mon, 16 Oct 2006 14:11:57 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 16 Oct 2006 21:11:58.0676 (UTC) FILETIME=[B75B0940:01C6F167] Subject: Is php_errmsg The Right Location for SyntaxErrors? From: bruce1828@hotmail.com ("Bruce Bailey") 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