Bug #733 Updated: return in global scope causes parser error
| From: | Bug Database | Date: | Fri, 11 Sep 1998 14:01:23 +0000 |
| Subject: | Bug #733 Updated: return in global scope causes parser error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-973@lists.php.net to get a copy of this message | ||
ID: 733
Updated by: zeev
Reported By: walton@nordicdms.com
Status: Suspended
Bug Type: Parser error
Assigned To:
Comments:
That's a good catch, but there's nothing much I can do about it, at least not that I can
think of now...
return would only work in the 'most global' scope, that is, not inside any braces or
anything.
Right now, the only way to properly use it that should work fine is an if statement with just one
action, i.e.
----------------------
if (...)
return;
...
----------------------
I'll try to think about a more comprehensive solution, but it doesn't look very promising
right now...
Full Bug description available at: http://ca.php.net/bugs.php3?id=733
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net