#21312 [Opn->Csd]: session_register doesnt like null values
| From: | rrichards@php.net | Date: | Sun, 11 May 2003 00:31:20 +0000 |
| Subject: | #21312 [Opn->Csd]: session_register doesnt like null values | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39424@lists.php.net to get a copy of this message | ||
ID: 21312
Updated by: rrichards@php.net
Reported By: charlesk at netgaintechnology dot com
-Status: Open
+Status: Closed
Bug Type: Session related
Operating System: Windows 2000 Server
PHP Version: 4.3.0
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-03-25 09:01:36] roland at web dot co dot th
Yes, it appears that
error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
is currently the most efficient work-around until the developers come
up with a response.
Has anyone a snipset how to code the sessions "clear" without causing
that message at all?
------------------------------------------------------------------------
[2003-03-23 17:05:06] nez at irc dot pl
I've set:
error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
(even with error_reporting = E_ERROR it works ok)
and there's no more that problem - i mean no warning:
"Warning: Unknown(): Your script possibly relies on a session
side-effect
which existed until PHP 4.2.3. Please be advised that the session
extension does not consider global variables as a source of data,
unless
register_globals is enabled. You can disable this functionality and
this
warning by setting session.bug_compat_42 or session.bug_compat_warn to
off, respectively. in Unknown on line 0"
Or.. you can always set register_globals = Off ... ;-)
------------------------------------------------------------------------
[2003-03-18 08:51:59] s at nospam dot org
still it is in the latest cvs and snaps. this problem being ignored?
------------------------------------------------------------------------
[2003-03-14 09:03:01] thomas dot hoppe at daimlerchrysler-bank dot com
Almost forgot:
I worked around by casting to a string.
------------------------------------------------------------------------
[2003-03-14 08:46:53] thomas dot hoppe at damlerchrysler-bank dot com
I think I've encountered exactly the same bug (?):
After registering a null-value my complete session is messed up (most -
didn't check whether all - variables are also null). Maybe this is
caused by mixing $_GET... with register_globals = on and
session_register(...) - which I do currently to migrate to
register_globals = off.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21312
--
Edit this bug report at http://bugs.php.net/?id=21312&edit=1