ID:               21312
 Comment by:       roland at web dot co dot th
 Reported By:      charlesk at netgaintechnology dot com
 Status:           Open
 Bug Type:         Session related
 Operating System: Windows 2000 Server
 PHP Version:      4.3.0
 New Comment:

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?


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

[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.

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

[2003-02-21 12:46:13] jseverson at myersinternet dot com

This is causing me major headaches. Any word on this bug yet?

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

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

Reply via email to