#23097 [NEW]: isset() function returns nothing
| From: | alex at globaldesign dot ca | Date: | Mon, 07 Apr 2003 17:12:37 +0000 |
| Subject: | #23097 [NEW]: isset() function returns nothing | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37284@lists.php.net to get a copy of this message | ||
From: alex at globaldesign dot ca
Operating system: Win XP
PHP version: 4.3.0
PHP Bug Type: Output Control
Bug description: isset() function returns nothing
The isset() function is not working properly with SESSION vars.
The following code :
<?
session_start();
echo isset($_SESSION["not_created_var"]);
?>
//Should return '0' Agreed ???
In my case it's returning nothing...
I event tried it on my web-hosting server, that is supposed to be properly
configured, and still I don't get a '0'.
I read Bug #5760 answered by Derick telling that PHP4 returns ""(the empty
string) if a var is not set or create, and that '0' is returned if it
existed. How come I get a '1' instead ???
--
Edit bug report at http://bugs.php.net/?id=23097&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23097&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23097&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23097&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23097&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23097&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23097&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23097&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23097&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23097&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23097&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23097&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23097&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23097&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23097&r=gnused