Bug #16795: function's optional parameter
| From: | emailleonid at start dot com dot au | Date: | Wed, 24 Apr 2002 14:23:29 +0000 |
| Subject: | Bug #16795: function's optional parameter | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-5827@lists.php.net to get a copy of this message | ||
From: emailleonid@start.com.au
Operating system: winxp
PHP version: 4.2.0
PHP Bug Type: Reproducible crash
Bug description: function's optional parameter
when function defined in a maner
<?
function test ($param = "$"){
echo $param;
}
test();
?>
u get
Parse error: parse error in D:\InetPub\test.php on line 2
when
<?
function test ($param = "a"){
echo $param;
}
test();
?>
Everything works as planed
a
--
Edit bug report at http://bugs.php.net/?id=16795&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16795&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16795&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16795&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16795&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16795&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16795&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16795&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16795&r=submittedtwice