Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11463 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59660 invoked by uid 1010); 22 Jul 2004 12:41:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59580 invoked from network); 22 Jul 2004 12:41:40 -0000 Received: from unknown (HELO mail.omniti.com) (66.80.117.3) by pb1.pair.com with SMTP; 22 Jul 2004 12:41:40 -0000 Received: from ([66.80.117.2:52495]) by mail.omniti.com (ecelerity HEAD) with SMTP id 25/92-30098-506BFF04; Thu, 22 Jul 2004 08:41:44 -0400 In-Reply-To: <20040722111742.253.qmail@pb1.pair.com> References: <20040722111742.253.qmail@pb1.pair.com> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <72756627-DBDC-11D8-86DF-000D93359332@omniti.com> Content-Transfer-Encoding: 7bit Cc: George Schlossnagle , internals@lists.php.net Date: Thu, 22 Jul 2004 08:41:26 -0400 To: "John Lim" X-Mailer: Apple Mail (2.618) Subject: Re: [PHP-DEV] Calling PHP functions from an extension From: george@omniti.com (George Schlossnagle) On Jul 22, 2004, at 7:17 AM, 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 ? If performance is your concern, why not simply call the various RDBMS API functions directly? George