Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49762 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74096 invoked from network); 17 Sep 2010 21:37:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Sep 2010 21:37:02 -0000 X-Host-Fingerprint: 66.153.167.114 rcs.us Received: from [66.153.167.114] ([66.153.167.114:2649] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/C6-30333-B7FD39C4 for ; Fri, 17 Sep 2010 17:37:02 -0400 Message-ID: <75.C6.30333.B7FD39C4@pb1.pair.com> To: internals@lists.php.net Date: Fri, 17 Sep 2010 17:37:00 -0400 User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 66.153.167.114 Subject: Earliest zend_eval_string can be called? From: mrice@rcs.us ("Matthew C. Rice") Hello, I was wondering how early a zend_eval_string call can be made. Currently it works fine in a PHP_FUNCTION(), but was hoping to put it in a PHP_MINIT() in hopes of it just executing once. It seems PHP_MINIT() is too early, and is causing failures. I came across PHP_GINIT_FUNCTION(), but can't seem to find when its called exactly, but the same situation as PHP_MINIT() seems to be the case, where its too early. In short, I am wondering if there is any place I can put the zend_eval_string() call in hopes of it running just once, so its result could be retained throughout the module execution. Matthew