php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5126 func_num_args() doesn't work
Submitted: 2000-06-19 15:26 UTC Modified: 2000-06-19 15:30 UTC
From: Dante at altmuehlnet dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.0 Release OS: Windows 98 SE
Private report: No CVE-ID: None
 [2000-06-19 15:26 UTC] Dante at altmuehlnet dot de
The following code:
<?
function foobar() {
   $numargs = func_num_args();
   return $numargs;
}
echo(foobar());
?>
Produces the following error:
Fatal error:  func_num_args(): Can't be used as a function parameter in test.php on line 3



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-19 15:29 UTC] Dante at altmuehlnet dot de
Sorry, it was RC1 not 4.0.0... The wrong machine...
 [2000-06-19 15:30 UTC] stas at cvs dot php dot net
My CVS version works OK. Try checking out CVS or version at http://snaps.php.net/
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 13 17:01:32 2024 UTC