Jump to content
Sign in to follow this  
saborchulo

PHP 5 No Register Globals

Recommended Posts

This is a mod that allows a OSC cart running on PHP5 to have the register_globals option disabled.

Tried to keep this as with other mods I have done, as far from editing original osc code as possible.

Only one minor tweak to a general osc function is required. If you use it or have a bug or question then do so here. Most of the documentation and requirements are in zip file.

Share this post


Link to post
Share on other sites

As a side note, this mod should also work for Osc shops running on PHP version >= 4.1.0 where the predefined $_SESSION super global is supported. In this scenario the register_long_arrays ini setting doesn't apply since the HTTP_*_VARS are available by default in >PHP 4.1.0.

Share this post


Link to post
Share on other sites

Hi

Successfully installed and testing on Linux server, (Slackware 10.2 with 2.6.15.6 Kernel) PHP 5.1.2.

and a clean OSC Store - no problems encountered :D

 

Mark

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×