Calling PHP functions from an extension
| From: | John Lim | Date: | Thu, 22 Jul 2004 11:17:24 +0000 |
| Subject: | Calling PHP functions from an extension | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-11462@lists.php.net to get a copy of this message | ||
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.