One of the ‘php.ini’ variable settings is ‘magic_quotes_gpc’. My production server is running PHP 5.2.17, and the value for this default setting is ‘on’.
I have two test servers, one is running PHP 5.3.5 and the other is running PHP 5.3.6. In both, the setting default value is ‘off’.
I encountered a problem on the production server that is being caused by the ‘magic_quotes_gpc=on;’ setting, and I wanted to change it. The PHP Manual for ‘magic_quotes_gpc’ starts off with a warning that this setting is being deprecated in PHP 5.3.0. Yet, as I said above, both of my test servers are running PHP 5.3 and both list it as a setting. Further, if I change its value on a test server, I clearly see that it had an effect.
My first question is: What is the true situation with this PHP setting. Should it be used or should it be avoided?
My second question is: If it is to be avoided, what are my options for effectively dealing with my issue on the production server that is caused by the setting of this variable?
Thank you.