Ask a Question related to PHP Development, Design and Development.
-
sniper@php.net #1
#25292 [Opn->Bgs]: is_null(1) and comparison with null produce different results
ID: 25292
Updated by: [email]sniper@php.net[/email]
Reported By: dizza at students dot ru
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: FreeBSD 5.1
PHP Version: 4.3.3
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 [url]http://www.php.net/support.php[/url] 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*
Previous Comments:
------------------------------------------------------------------------
[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 [url]http://bugs.php.net/?id=25292&edit=1[/url]
sniper@php.net Guest
-
#25292 [Bgs]: is_null(1) and comparison with null produce different results
ID: 25292 Updated by: sniper@php.net Reported By: dizza at students dot ru Status: Bogus Bug Type: ... -
#25292 [NEW]: is_null(1) and comparison with null produce different results
From: dizza at students dot ru Operating system: FreeBSD 5.1 PHP version: 4.3.3 PHP Bug Type: Scripting Engine problem Bug... -
#25137 [Opn->Bgs]: !is_null($var) does not work the same as $var != NULL
ID: 25137 Updated by: sniper@php.net Reported By: pedropla at holidaymarketing dot com -Status: Open +Status: ... -
#25137 [Opn]: !is_null($var) does not work the same as $var != NULL
ID: 25137 User updated by: pedropla at holidaymarketing dot com Reported By: pedropla at holidaymarketing dot com Status: ... -
#25137 [NEW]: !is_null($var) does not work the same as $var != NULL
From: pedropla at holidaymarketing dot com Operating system: Linux PHP version: 4.3.3RC4 PHP Bug Type: Scripting Engine...



Reply With Quote

