ID: 5917
Updated by: sterling
Old Summary: return in OR statement alowed(like $a OR die("plop");
Reported By: [EMAIL PROTECTED]
Old Status: Analyzed
Status: Closed
Bug Type: Feature/Change Request
Operating System: linux
PHP Version: 4.0 Latest CVS (02/08/2000)
New Comment:

eekkk, PHP != Perl


Previous Comments:
------------------------------------------------------------------------

[2000-08-02 12:45:04] [EMAIL PROTECTED]

canīt imagine the reason for this beeing forbidden...

------------------------------------------------------------------------

[2000-08-02 10:53:00] [EMAIL PROTECTED]

<?
        function Test ($a) {
                !$a OR return(TRUE); // $a or DIE("plop") is allowed
        }
        Test(FALSE);
?>

/*
now you have to do :
if (!$a) {
   return(TRUE);
}
*/

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=5917&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to