ID:               48364
 Updated by:       paj...@php.net
 Reported By:      clement dot hallet at af83 dot com
 Status:           Bogus
 Bug Type:         Variables related
 Operating System: Mac OS X 10.5.6
 PHP Version:      5.2.9
 New Comment:

is_null


Previous Comments:
------------------------------------------------------------------------

[2009-05-22 18:38:30] clement dot hallet at af83 dot com

Sorry for the bad status :)

Please note that because of :
 $a = NULL;
 isset($a) -> FALSE
 is_null($b) -> TRUE (a notice happend)

It's impossible to test if a variable is _set_ to NULL :/

------------------------------------------------------------------------

[2009-05-22 18:26:18] paj...@php.net

no bug > bogus :)

------------------------------------------------------------------------

[2009-05-22 18:23:11] clement dot hallet at af83 dot com

That bug report is void. Have seen
http://fr3.php.net/manual/en/function.isset.php

Maybe a change betweens versions ?

------------------------------------------------------------------------

[2009-05-22 18:14:32] clement dot hallet at af83 dot com

Description:
------------
Hi,

A call to the 'isset' function with a variable set to NULL returns
FALSE.

As seen on a previous report bug (http://bugs.php.net/bug.php?id=6076),
the return value should be TRUE.

Reproduce code:
---------------
$a = NULL;
var_dump(isset($a));

Expected result:
----------------
the return of isset($a) should be TRUE.

Actual result:
--------------
isset($a) returns FALSE


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48364&edit=1

Reply via email to