LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] PHP upgrade warnings

[ILUG] PHP upgrade warnings

David Coallier davidc at php.net
Fri Aug 20 13:41:06 IST 2010


On 20 August 2010 09:23, Kae Verens <kae at verens.com> wrote:
>  On 08/20/2010 09:16 AM, kevin wrote:
>>
>> I upgraded one of our Debian Squeeze boxes yesterday and now I get the
>> following warning by email every 30 minutes.
>>
>> Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and
>> greater in Unknown on line 0
>>
>> Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and
>> greater in Unknown on line 0
>
> you might have them in a .htaccess file for an old PHP script.
>
> magic_quotes_gpc was a really bad idea in older PHP versions which
> automatically quoted strings to allow them to be placed in database queries
> (for example). It caused a shit-load of confusion, and was one of the
> reasons early PHP was considered to be insecure, so it was dropped.
>
> register_long_arrays is about how POST and GET variables are stored globally
> in $HTTP_*_VARS - that's since been dropped in favour of $_GET, $_POST, and
> $_REQUEST.

For now just set your error_reporting ini config to

error_reporting = E_ALL &~ E_DEPRECATED

It'll ignore all the deprecated errors basically

If this is a live/production server, I'd also set:

display_errors = Off
display_startup_errors = Off


-- 
David Coallier


More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell