Bug #65810 [Opn->Nab]: PHP treats integer 0 as a NULL
| From: | mike@php.net | Date: | Wed, 02 Oct 2013 11:31:01 +0000 |
| Subject: | Bug #65810 [Opn->Nab]: PHP treats integer 0 as a NULL | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10354@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65810&edit=1
ID: 65810
Updated by: mike@php.net
Reported by: gnjagi at gmail dot com
Summary: PHP treats integer 0 as a NULL
-Status: Open
+Status: Not a bug
Type: Bug
-Package: *Compile Issues
+Package: Doc Build problem
Operating System: win 7
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2013-10-02 11:15:24] gnjagi at gmail dot com
Description:
------------
PHP is treating integer 0 as a NUll. This brings inconsistency when dealing with an array with zeros
and spaces(NULL)
Test script:
---------------
$val==0;
if ($val==NULL)
{
echo "sad";
}
Expected result:
----------------
No value
Instead it returns "sad"
Actual result:
--------------
"sad"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65810&edit=1