Re: register_globals and sessions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 25, 2009 at 3:01 PM, Allen McCabe <allenmccabe@xxxxxxxxx> wrote:
> *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*

It sounds like you're trying to use $_SESSION without having a
session_start() call first.

> I have Googled this extensively, and the solutions other people tried
> (turning off the warning) don't work for me; I don't have permission to my
> PHP settings (currently working on a free-hosted site).

There are many settings that can be changed using the function ini_set
(http://php.net/ini_set) and display_errors is one of them.
That said, it is always best to fix stuff like this than just hiding
it. When you just hide errors/warnings/notices things don't always
work reliably.

HTH,

Brady

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux