Page 1 of 1

Weird Warning Notice!

Posted: Thu Jan 17, 2008 5:00 pm
by gssi
I am receiving the following warning message on the initial display of a particular web form page:

"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"

Can anyone advise as to the cause of this message or, at least, how to avoid it ...

Re: Weird Warning Notice!

Posted: Thu Jan 17, 2008 5:36 pm
by Kieran Huggins
Only use $_POST[], $_GET[] and $_SESSION[] as your inputs.

check out http://ca.php.net/manual/en/language.va ... efined.php

Re: Weird Warning Notice!

Posted: Fri Jan 18, 2008 12:50 am
by Mordred
OT: You think it's wierd? Try this:

Code: Select all

<?php :: ?>

Re: Weird Warning Notice!

Posted: Fri Jan 18, 2008 6:13 am
by Weirdan
Mordred wrote:OT: You think it's wierd? Try this:
Weird? Everyone knows what paamayim nekudotayim is.

Re: Weird Warning Notice!

Posted: Fri Jan 18, 2008 7:46 am
by Mordred
Weirdan wrote:
Mordred wrote:OT: You think it's wierd? Try this:
Weird? Everyone knows what paamayim nekudotayim is.
Yeah, but the question is would anyone expect it to be unexpected...

Re: Weird Warning Notice!

Posted: Fri Jan 18, 2008 9:33 am
by Weirdan
Mordred wrote:Yeah, but the question is would anyone expect it to be unexpected...
I, for sure, would be unexpecting expected p.n.