note 86792 added to function.return
| From: | RobertChapin at osu1 dot php dot net | Date: | Tue, 04 Nov 2008 06:13:52 +0000 |
| Subject: | note 86792 added to function.return | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146105@lists.php.net to get a copy of this message | ||
The current information about return() is wrong or incomplete. PHP 5.2.5 threw the following error
on return(); from a require()'d file.
PHP Parse error: syntax error, unexpected ')'
Despite documentation to the contrary, parentheses must not be used!
----
Server IP: 69.147.83.197
Probable Submitter: 76.251.216.86
----
Manual Page -- http://www.php.net/manual/en/function.return.php
Edit -- https://master.php.net/note/edit/86792
Del: integrated -- https://master.php.net/note/delete/86792/integrated
Del: useless -- https://master.php.net/note/delete/86792/useless
Del: bad code -- https://master.php.net/note/delete/86792/bad+code
Del: spam -- https://master.php.net/note/delete/86792/spam
Del: non-english -- https://master.php.net/note/delete/86792/non-english
Del: in docs -- https://master.php.net/note/delete/86792/in+docs
Del: other reasons-- https://master.php.net/note/delete/86792
Reject -- https://master.php.net/note/reject/86792
Search -- https://master.php.net/manage/user-notes.php