Zend API for calling user functions ?

From: Date: Thu, 22 Jun 2000 13:28:33 +0000
Subject: Zend API for calling user functions ?
Groups: php.dev 
Request: Send a blank email to php-dev+get-21960@lists.php.net to get a copy of this message
Hi all, I'm developing a PHP4 extension in which it would be useful to be able to call arbitrary functions; is it at all possible, and if so is there a recommended way, of doing the following : <? function my_function($x,$y,$z) { return $x+$y+$z; } $args = array(1,2,3); $result = php_extension_do_fncall("my_function",$args); if ($result == my_function(1,2,3)) { echo "success !"; } ?> ======================================== Laurent Bossavit - Ingénieur R&D >>> laurent@mmania.com <<< >> ICQ#39281367 << MultiMania http://www.multimania.fr/ ========================================

« previous php.dev (#21960) next »