PDA

View Full Version : Php 4.2.0


Trumpcard
04-24-2002, 01:33 PM
For anyone that updates to php 4.2.0 and notices some of their scripts not working right...

They changed it so that env data isnt scoped globally anymore

External variables (from the environment, the HTTP request, cookies or the web server) are no longer registered in the global scope by default

This means that all the good ol' POST's you did with 4.1.x and friends won't work anymore unless you do 1 of 2 things... Redefine your code to use there new superarray way of doing things, or modify your /etc/php.ini file to cut register_globals = On


Hope this saves someone some time... Updated to 4.2.0 tonight and noticed I could still read from my php database frontends, but couldnt write, so cut up tracing and noticed none of my POST'd values were getting passed from page to page anymore...

I'll probably go back and rewrite it correctly later, but right now, South Park's about to come on :-)