#31627 [NEW]: return statement should return

From: Date: Thu, 20 Jan 2005 18:28:40 +0000
Subject: #31627 [NEW]: return statement should return
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72535@lists.php.net to get a copy of this message
From:             mnemo at minimum dot se
Operating system: All
PHP version:      Irrelevant
PHP Bug Type:     Feature/Change Request
Bug description:  return statement should return

Description:
------------
I wish "return doh" was treated like an expression when though this
expression will never be computable.

The reason is that I want to write this:

mysql_connect(blah) or return false;

Just like I do with die etc.


-- 
Edit bug report at http://bugs.php.net/?id=31627&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31627&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31627&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31627&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31627&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31627&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31627&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31627&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31627&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31627&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31627&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=31627&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=31627&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31627&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31627&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31627&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31627&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31627&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31627&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31627&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31627&r=mysqlcfg


Thread (6 messages)

« previous php.bugs (#72535) next »