Bug #17096 Updated: func_get_arg() with negativ argument

From: Date: Wed, 08 May 2002 14:05:40 +0000
Subject: Bug #17096 Updated: func_get_arg() with negativ argument
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-7243@lists.php.net to get a copy of this message
ID: 17096 Updated by: derick@php.net Reported By: matthias.oestreicher@istec.de -Status: Open +Status: Closed Bug Type: Reproducible crash Operating System: Linux and WinNT PHP Version: 4.1.2 New Comment: Fixed in CVS, change will be in 4.3.0 and up Derick Previous Comments: ------------------------------------------------------------------------ [2002-05-08 09:46:24] matthias.oestreicher@istec.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 09:44:54] matthias.oestreicher@istec.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17096&edit=1

« previous php.bugs (#7243) next »