Re: Calling PHP functions from an extension

From: Date: Thu, 22 Jul 2004 12:41:26 +0000
Subject: Re: Calling PHP functions from an extension
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-11463@lists.php.net to get a copy of this message
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,  &params[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

« previous php.internals (#11463) next »