message "warning: Your script possibly relies on a session side-effect which existed until PHP 4.2.3" isn't displayed in Firefox

Asked by marco.pallotta

I wrote some php scripts and, when executed with MS Internet Explorer I get the message

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

The fact is that in Firefox this message isn't displayed. I think it's not a clear behaviour of this browser.

What do you think about this? Is this a Firefox bug?

Question information

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

IE reads code different to Firefox.

If Firefox does not show an error then surely this isn't a bug? Sounds like an IE bug.

You could add some lines to identify the browser, then if it's IE then use setting session.bug_compat_42 or whatever that the output shows.

Revision history for this message
marco.pallotta (marco-pallotta) said :
#2

Well, I have read that this message seems a "programming bug" (it isn't displayed if I set to off session.bug_compat_42 or ession.bug_compat_warn in php.ini) not a IE bug. In fact, from web forums, I can read that if someone has this issue he can read the above message either in IE or in Firefox. This is why I suppose is a firefox issue.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

If you suspect a bug then log one and it will get addressed. The info you have is good, you could post your code if it is legal to do so (and you want to)

Can you help with this problem?

Provide an answer of your own, or ask marco.pallotta for more information if necessary.

To post a message you must log in.