Hi
I have rather frustratingly had to upgrade my version of PHP to 5.3 on a server that runs legacy sites. I have successfully managed to get this up and running however I have one small problem that won't go away. I am consistantly getting the following error.
"PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0 "
I have enabled in register_globals in my PHP.INI file because i have numerous sites that we're developed many years ago which make use of Global Variables.
Would anyone be able to suggest a way that I can hide that damn message, I am at my wits end.
Thanks in advance, Gareth.
Directive 'register_globals' is deprecated PHP 5.3
Moderator: General Moderators
Re: Directive 'register_globals' is deprecated PHP 5.3
Maybe set error reporting to "E_ALL ~E_WARNING"? Not sure if that's the right syntax though, but something similar. (E_ALL less E_WARNING in bitwise).
Re: Directive 'register_globals' is deprecated PHP 5.3
You should update your code. You'll get hacked to sh|t with register globals turned on.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Directive 'register_globals' is deprecated PHP 5.3
HUZZZAAAAAHHHH!gdo198 wrote:"PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0 "
(#10850)
Re: Directive 'register_globals' is deprecated PHP 5.3
php 5.3 has a new constant for this: E_DEPRECATED. So it should read E_ALL&~E_DEPRECATEDMinty wrote:Maybe set error reporting to "E_ALL ~E_WARNING"?