php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17096 func_get_arg() with negativ argument
Submitted: 2002-05-08 09:44 UTC Modified: 2002-05-08 10:05 UTC
From: matthias dot oestreicher at istec dot de Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.1.2 OS: Linux and WinNT
Private report: No CVE-ID: None
 [2002-05-08 09:44 UTC] matthias dot oestreicher at istec dot de
<?php
	function test2()
	{
		echo func_get_arg (1)."\n";
		echo func_get_arg (0)."\n";
		echo func_get_arg (-1)."\n";
	}
        test ("hello");
?>
Output:
Warning: func_get_arg():  Argument 1 not passed to function in /home/moe/public_html/php/test2.php on line 4
/home/moe/public_html/php/test2.php(4) : Warning - func_get_arg():  Argument 1 not passed to function

hello
Segmentation fault

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-08 09:46 UTC] matthias dot oestreicher at istec dot de
<?php
	function test()
	{
		echo func_get_arg (1)."\n";
		echo func_get_arg (0)."\n";
		echo func_get_arg (-1)."\n";
	}
        test ("hello");
?>
Output:
Warning: func_get_arg():  Argument 1 not passed to function in
/home/moe/public_html/php/test2.php on line 4
/home/moe/public_html/php/test2.php(4) : Warning - func_get_arg(): 
Argument 1 not passed to function

hello
Segmentation fault
 [2002-05-08 10:05 UTC] derick@php.net
Fixed in CVS, change will be in 4.3.0 and up

Derick
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 11:00:02 2026 UTC