Home  |  Linux  | Mysql  | PHP  | XML
From:Shawn McKenzie Date:Sun Feb  7 16:15:30 2010
Subject:Re: Warning?
tedd wrote:
> Hi:
>
> Has anyone encountered this 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
>
> I seem to remember this happening before, but I don't remember the
> solution. As I remember, it wasn't really reporting an error, but
> something else. I just don't remember how I dealt with it before.
>
> I don't know how to set session.bug_compat_warn to off.
>
> Any ideas?
>
> Cheers,
>
> tedd
>
> PS: I'm using php 5.2.10 and register_global is OFF.

This will reproduce the error:

session_start();
$_SESSION['test'] = null;
$test = 1;

It has something to do with using a global var that is the same name as
a session var, but the session var has to be null it seems.


--
Thanks!
-Shawn
http://www.spidean.com
Navigate in group php.general at sever news.php.net
Previous Next


Your recent visits
Re: Hi list --- justa simple question
Re: [PHP] simplexml - can it do what I need?
=?utf-8?B?UHJvYmxlbSB3aXRoIGJsb2NraW5nIHN0cmVhbXMgaW4gUEhQ?=
Re: [PHP] web sniffer
Re: [PHP] Warning?



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants