Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11462 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 302 invoked by uid 1010); 22 Jul 2004 11:17:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 268 invoked by uid 1007); 22 Jul 2004 11:17:43 -0000 Message-ID: <20040722111742.253.qmail@pb1.pair.com> To: internals@lists.php.net Date: Thu, 22 Jul 2004 19:17:24 +0800 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 219.95.248.163 Subject: Calling PHP functions from an extension From: jlim@natsoft.com.my ("John Lim") 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.