php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10829 call_user_func() - Bug
Submitted: 2001-05-12 10:23 UTC Modified: 2001-05-14 10:05 UTC
From: stefan at livieratos dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.5 OS: Win2K, Solaris
Private report: No CVE-ID: None
 [2001-05-12 10:23 UTC] stefan at livieratos dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-14 10:05 UTC] andrei@php.net
Fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 17:01:30 2024 UTC