ID: 46913
Updated by: [email protected]
Reported By: OrminAPO at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Windows XP Professional SP 2
PHP Version: 5.2.8
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
Please provide the complete reproduce script then.
Previous Comments:
------------------------------------------------------------------------
[2008-12-20 13:29:50] OrminAPO at gmail dot com
Forgot to add - Function is from class, so examlple should be:
$log = $account->isLogged();
------------------------------------------------------------------------
[2008-12-20 13:28:03] OrminAPO at gmail dot com
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 this bug report at http://bugs.php.net/?id=46913&edit=1