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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stefan at livieratos dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-14 10:05 UTC] andrei@php.net
Fixed in CVS.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 05 20:01:29 2025 UTC