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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to