|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-14 10:05 UTC] andrei@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 19:00:01 2025 UTC |
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