#46913 [NEW]: Returning of bool types directly in return function returns null
| From: | OrminAPO at gmail dot com | Date: | Sat, 20 Dec 2008 13:28:04 +0000 |
| Subject: | #46913 [NEW]: Returning of bool types directly in return function returns null | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-132194@lists.php.net to get a copy of this message | ||
From: OrminAPO at gmail dot com
Operating system: Windows XP Professional SP 2
PHP version: 5.2.8
PHP Bug Type: Unknown/Other Function
Bug description: Returning of bool types directly in return function returns null
Description:
------------
It doesn't returns bool type properly when bool type inserted into return.
Reproduce code:
---------------
function isLogged()
{
if(is_numeric($this->ID))
return true;
else
return false;
}
$log = isLogged(); // Returns NULL
Expected result:
----------------
$log = bool(false);
Actual result:
--------------
$log = null;
--
Edit bug report at http://bugs.php.net/?id=46913&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46913&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46913&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46913&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46913&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46913&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46913&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46913&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46913&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46913&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46913&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46913&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46913&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46913&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46913&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46913&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46913&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46913&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46913&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46913&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46913&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46913&r=mysqlcfg