note 45641 added to ref.session
| From: | irmatin3activadotcom at osu1 dot php dot net | Date: | Mon, 13 Sep 2004 18:57:05 +0000 |
| Subject: | note 45641 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76637@lists.php.net to get a copy of this message | ||
Warnings :
session.bug_compat_42 and bug_compat_warn
Warnings may appears even if your code is correct,
because some asumptions of the developpers.
In practice, these warnings are automatic when your code results in something like:
$_SESSION['var']= NULL;
That is, the code assume that the programmer tried
to assign a unavailable (=NULL) variable because
register_globals is off.
Solution: assign anything but NULL. For example:
$_SESSION['var']= is_null($var) ? 0 : $var;
----
Manual Page -- http://www.php.net/manual/en/ref.session.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45641
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45641&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45641&report=yes
Search -- http://master.php.net/manage/user-notes.php