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.
Kae
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!