PHP 4.0 Bug #5917: return in OR statement alowed(like $a OR die("plop");
| From: | wico at cnh dot nl | Date: | Wed, 02 Aug 2000 08:53:00 +0000 |
| Subject: | PHP 4.0 Bug #5917: return in OR statement alowed(like $a OR die("plop"); | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-27399@lists.php.net to get a copy of this message | ||
From: wico@cnh.nl
Operating system: linux
PHP version: 4.0 Latest CVS (02/08/2000)
PHP Bug Type: Feature/Change Request
Bug description: return in OR statement alowed(like $a OR die("plop");
<?
function Test ($a) {
!$a OR return(TRUE); // $a or DIE("plop") is allowed
}
Test(FALSE);
?>
/*
now you have to do :
if (!$a) {
return(TRUE);
}
*/