apache segfaults when we have register_globals turned on with php 5.3. I know we should not do that, and we have it off now, but some of our very old code needs it. Anyone have any hints on what to try/look at to solve this?
thanks
apache segfaults when we have register_globals turned on with php 5.3. I know we should not do that, and we have it off now, but some of our very old code needs it. Anyone have any hints on what to try/look at to solve this?
thanks
the patchwork approach
You can include some code in the very beginning of the very old script you can use one of the well known register_global compatibility code you can find googling.
An example may be:
The autopatchwork approach
You can add:
to your .htaccess or VirutualHosts section in order to automagically do the job without the need of touch any existing script.
The judicious approach
The best thing of course would be rewrite the old code, as register_globals is a well known evil.