Throw Question
| From: | Jason Garber | Date: | Thu, 17 Jun 2004 06:17:26 +0000 |
| Subject: | Throw Question | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-10553@lists.php.net to get a copy of this message | ||
Consider the following:
$x = FALSE;
$x || throw new exception('Some Assertion');
I get the following Parse Error:
error: parse error, unexpected T_THROW in /home/.../Z_Record.php on line 153
However, this code produces no errors..
$x = FALSE;
$x || exit;
Why is this?
Thanks,
Jason Garber