#25292 [Bgs]: is_null(1) and comparison with null produce different results
| From: | sniper@php.net | Date: | Thu, 28 Aug 2003 15:58:04 +0000 |
| Subject: | #25292 [Bgs]: is_null(1) and comparison with null produce different results | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46867@lists.php.net to get a copy of this message | ||
ID: 25292
Updated by: sniper@php.net
Reported By: dizza at students dot ru
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: FreeBSD 5.1
PHP Version: 4.3.3
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
*sigh x 2*
Previous Comments:
------------------------------------------------------------------------
[2003-08-28 10:57:37] sniper@php.net
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.
Thank you for your interest in PHP.
To get support, pay us something first. Otherwise, go ask this kind of
stupid questions on the mailing lists.
*sigh*
------------------------------------------------------------------------
[2003-08-28 08:24:54] dizza at students dot ru
Description:
------------
When calling is_null(1) for a varibale and compare it with
null I get different result.
Shouldn't it produce the same result?
Reproduce code:
---------------
$arr = array();
echo( is_null( $arr ) ? "is_null: NULL\n" : "is_null: NOT NULL\n" );
echo( (null == $arr) ? "null: NULL\n" : "null: NOT NULL\n" );
Expected result:
----------------
is_not: NOT NULL
null: NULL
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25292&edit=1