Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11492 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43535 invoked by uid 1010); 22 Jul 2004 23:34:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 43480 invoked from network); 22 Jul 2004 23:34:50 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 22 Jul 2004 23:34:50 -0000 Received: (qmail 29173 invoked from network); 22 Jul 2004 23:34:48 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 22 Jul 2004 23:34:48 -0000 Message-ID: <5.1.0.14.2.20040722163423.0433ee48@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 22 Jul 2004 16:34:45 -0700 To: "John Lim" ,internals@lists.php.net In-Reply-To: <20040722111742.253.qmail@pb1.pair.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Calling PHP functions from an extension From: andi@zend.com (Andi Gutmans) References: <20040722111742.253.qmail@pb1.pair.com> Check out zend_call_function(). It allows you to cache the function lookup in the fci_cache parameter. Andi At 07:17 PM 7/22/2004 +0800, John Lim wrote: >Hi, > >I am using call_user_function_ex() to call mysql_fetch_array, ocifetchinto, >etc. > > error = call_user_function_ex(EG(function_table), > NULL, > &function_name_zval, > &retval, 2, ¶ms[1], 0, NULL TSRMLS_CC); > >This is not giving me the performance I am looking for because the Zend >Engine >still has to search for the function to call. Is there any way to get a >function >pointer to mysql_fetch_array/ocifetchinto etc., and call the function >directly ? > >Thanks in advance. > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php