Bug #10829 Updated: call_user_func() - Bug
| From: | andrei@php.net | Date: | Mon, 14 May 2001 14:05:46 +0000 |
| Subject: | Bug #10829 Updated: call_user_func() - Bug | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55164@lists.php.net to get a copy of this message | ||
ID: 10829
Updated by: andrei
Reported By: stefan@livieratos.com
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
Fixed in CVS.
Previous Comments:
---------------------------------------------------------------------------
[2001-05-12 10:23:44] stefan@livieratos.com
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
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10829&edit=2