NYCPHP Meetup

NYPHP.org

[nycphp-talk] Warning: Unknown(): Your script possibly

Chris Shiflett shiflett at php.net
Mon May 28 14:11:30 EDT 2007


Shaiju Davis 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.

Just use session_start() and the $_SESSION superglobal, then you won't
see this warning.

Chris

-- 
Chris Shiflett
http://shiflett.org/



More information about the talk mailing list