get_magic_quotes_gpc() throws deprecated warning in 5.4

From: Date: Sat, 12 Nov 2011 11:06:00 +0000
Subject: get_magic_quotes_gpc() throws deprecated warning in 5.4
Groups: php.internals 
Request: Send a blank email to internals+get-56300@lists.php.net to get a copy of this message
I looked through the mailing list archives, and in several threads the consensus seemed to be that the setters should throw a warning, but the getters should not... > localhost:test dzuelke$ ~/Code/oss/php/php-5.4.0RC1/sapi/cli/php -v > PHP 5.4.0RC1 (cli) (built: Nov 11 2011 19:53:40) > Copyright (c) 1997-2011 The PHP Group > Zend Engine v2.4.0, Copyright (c) 1998-2011 Zend Technologies > localhost:test dzuelke$ ~/Code/oss/php/php-5.4.0RC1/sapi/cli/php -r > 'get_magic_quotes_gpc();' > PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in Command line code on line 1 Bug report is up at https://bugs.php.net/bug.php?id=55371, I've attached a patch to the ticket and this email that fixes the problem, test included. - David

« previous php.internals (#56300) next »