Re: Calling PHP functions from an extension

From: Date: Thu, 22 Jul 2004 23:34:45 +0000
Subject: Re: Calling PHP functions from an extension
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-11492@lists.php.net to get a copy of this message
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,  &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 ? Thanks in advance. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.internals (#11492) next »