Bug #17096 Updated: func_get_arg() with negativ argument

From: Date: Wed, 08 May 2002 13:46:24 +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-7241@lists.php.net to get a copy of this message
ID: 17096 Updated by: matthias.oestreicher@istec.de Reported By: matthias.oestreicher@istec.de Status: Open Bug Type: Reproducible crash Operating System: Linux and WinNT PHP Version: 4.1.2 New Comment: <?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 Previous Comments: ------------------------------------------------------------------------ [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 (#7241) next »