Bug #17096: func_get_arg() with negativ argument
| From: | matthias dot oestreicher at istec dot de | Date: | Wed, 08 May 2002 13:44:55 +0000 |
| Subject: | Bug #17096: func_get_arg() with negativ argument | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-7240@lists.php.net to get a copy of this message | ||
From: matthias.oestreicher@istec.de
Operating system: Linux and WinNT
PHP version: 4.1.2
PHP Bug Type: Reproducible crash
Bug description: func_get_arg() with negativ argument
<?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 bug report at http://bugs.php.net/?id=17096&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17096&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17096&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17096&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17096&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17096&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17096&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17096&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17096&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17096&r=globals