Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56300 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32307 invoked from network); 12 Nov 2011 11:06:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Nov 2011 11:06:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=david.zuelke@bitextender.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=david.zuelke@bitextender.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain bitextender.com from 80.237.132.12 cause and error) X-PHP-List-Original-Sender: david.zuelke@bitextender.com X-Host-Fingerprint: 80.237.132.12 wp005.webpack.hosteurope.de Received: from [80.237.132.12] ([80.237.132.12:41262] helo=wp005.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/73-05938-B135EBE4 for ; Sat, 12 Nov 2011 06:06:04 -0500 Received: from dslb-092-075-019-231.pools.arcor-ip.net ([92.75.19.231] helo=[192.168.0.103]); authenticated by wp005.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) id 1RPBPM-0005Ob-I5; Sat, 12 Nov 2011 12:06:00 +0100 Content-Type: multipart/mixed; boundary="Apple-Mail=_B9F8B0A6-3AD6-43A6-8678-45D347DFBD26" Date: Sat, 12 Nov 2011 12:06:00 +0100 Message-ID: <372C6494-1C4C-4E71-BFC2-D41D87A918CF@bitextender.com> Cc: Pierre Joye To: internals@lists.php.net Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) X-bounce-key: webpack.hosteurope.de;david.zuelke@bitextender.com;1321095964;fb47c839; Subject: get_magic_quotes_gpc() throws deprecated warning in 5.4 From: david.zuelke@bitextender.com (=?iso-8859-1?Q?David_Z=FClke?=) --Apple-Mail=_B9F8B0A6-3AD6-43A6-8678-45D347DFBD26 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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)=20 > 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=3D55371, I've = attached a patch to the ticket and this email that fixes the problem, = test included. - David --Apple-Mail=_B9F8B0A6-3AD6-43A6-8678-45D347DFBD26 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_B9F8B0A6-3AD6-43A6-8678-45D347DFBD26--