Bug #10829: call_user_func() - Bug
| From: | stefan at livieratos dot com | Date: | Sat, 12 May 2001 14:23:44 +0000 |
| Subject: | Bug #10829: call_user_func() - Bug | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55005@lists.php.net to get a copy of this message | ||
From: stefan@livieratos.com
Operating system: Win2K, Solaris
PHP version: 4.0.5
PHP Bug Type: Scripting Engine problem
Bug description: call_user_func() - Bug
Hi,
I have found the following bug with the function call_user_func():
If the user function you are trying to call with 'call_user_func' requires any of its
parameters to be passed by reference, PHP issues a warning stating that the function doesn't
exist.
Example:
<?php
function testme(&$param) {
var_dump($param);
}
$func = "testme";
$param = array(1, 2);
call_user_func($func, $param);
?>
Result:
<br>
<b>Warning</b>: Unable to call testme() - function does not exist in
<b>t.php</b> on line <b>1</b><br>
Regards,
Stefan Livieratos
--
Edit Bug report at: http://bugs.php.net/?id=10829&edit=1