Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37814 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54875 invoked from network); 23 May 2008 03:20:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2008 03:20:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=sv_forums@fmethod.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sv_forums@fmethod.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fmethod.com from 69.16.228.148 cause and error) X-PHP-List-Original-Sender: sv_forums@fmethod.com X-Host-Fingerprint: 69.16.228.148 unknown Linux 2.4/2.6 Received: from [69.16.228.148] ([69.16.228.148:42090] helo=host.fmethod.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/32-35754-6F736384 for ; Thu, 22 May 2008 23:20:23 -0400 Received: from [83.228.56.37] (port=1247 helo=pc) by host.fmethod.com with esmtpa (Exim 4.68) (envelope-from ) id 1JzNpL-0004rJ-0H for internals@lists.php.net; Thu, 22 May 2008 22:20:19 -0500 Message-ID: To: "internals Mailing List" References: <5B2E59A9-BC46-447F-BEBC-C4149866A802@roshambo.org> <1211494158.7416.5.camel@localhost> <48360328.3040500@lerdorf.com> Date: Fri, 23 May 2008 06:20:11 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.fmethod.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fmethod.com Subject: Re: [PHP-DEV] magic quotes finale From: sv_forums@fmethod.com ("Stan Vassilev | FM") Hi, Just making sure I understood it well. Get isn't deprecated (good), set is (good), but what happens if I try to set magic quotes runtime *off* if it was *on* from the config. I couldn't see anything about the PHP config setting being ignored/removed or throwing error in the RFC. For code that must be portable, and I don't have access to server/PHP config, I often have something like this in init: if (get_magic_quotes_runtime()) { set_magic_quotes_runtime(0); } if (get_magic_quotes_gpc()) { include 'a_snippet_that_recursively_strips_slashes_off_gpc.php'; } Regards, Stan Vassilev