|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-24 18:08 UTC] sjoerd@php.net
[2009-08-24 18:59 UTC] mirko dot steiner at slashdevslashnull dot de
[2009-08-25 07:14 UTC] sjoerd@php.net
[2009-08-25 12:48 UTC] mirko dot steiner at slashdevslashnull dot de
[2009-08-26 05:59 UTC] svn@php.net
[2009-08-26 06:00 UTC] torben@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 02:00:01 2025 UTC |
Description: ------------ using return() with an empty argument list is causing in a parser error. Reproduce code: --------------- <?php function foo($arg) { if($arg) { return('bar'); } else { return(); } } ?> Expected result: ---------------- no parser error :-) Actual result: -------------- Parse error: syntax error, unexpected ')' in /usr/local/www/develop/htdocs/test.php on line 6