|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-03-07 16:13 UTC] andrei at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 26 10:00:01 2025 UTC |
I can't get function arguments initalized to 'unset' to work anymore. This example works fine: function myfunc( $arg=1 ) { echo $arg."<br>\n"; } myfunc( ); myfunc( 'Hello, world.' ); Printing out '1' and 'Hello, world.' as expected. Modify it to: function myfunc( $arg=unset ) { echo $arg."<br>\n"; } myfunc( ); myfunc( 'Hello, world.' ); This version gives me: Parse error: parse error in /www/htdocs/test.html on line 7 where line 7 is the function myfunc() line. This all worked fine with PHP4 betas 2 & 3.