Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44297 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77069 invoked from network); 16 Jun 2009 08:09:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2009 08:09:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.154 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 72.14.220.154 fg-out-1718.google.com Received: from [72.14.220.154] ([72.14.220.154:33047] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/4A-18251-A43573A4 for ; Tue, 16 Jun 2009 04:09:47 -0400 Received: by fg-out-1718.google.com with SMTP id 16so1220230fgg.0 for ; Tue, 16 Jun 2009 01:09:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=bq8e+sEG13D7V2WuV2vXVOZFe2Yf/nggiPhp95QLrhs=; b=VZ6fvWSnzggzpdorXIDDwWx3IEz6x+TQK/LJaRER1e/VPvy0tyswa4PxwJCy70kHCe ZjiErfY1oaMwjGt4qtspdTFUFT3tDVrSQ3N3MjJyqCEhOV+eM5e4ls7+657vqcwFKPtV OjiVe9rOVwHs5iZIT2FCtnHdui3hRT7/DhByo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=sizXwhy+JwnuKzXFTKhqprz+HajQCYkiRWP5IS/W7n2QmBexKVNbw2al20jH9bHJgu 2ax4c+6LdR5hzI7IceCq8PLOjUWGuz84rZo0eyVtyO5bXrDnCHUOHFZ5jvaRsH744i7C 0mBlMpcv94AG/VaEij5HniVJBcz1Yb22bRnCk= MIME-Version: 1.0 Received: by 10.86.4.14 with SMTP id 14mr3171696fgd.12.1245139783807; Tue, 16 Jun 2009 01:09:43 -0700 (PDT) In-Reply-To: <4E6F2E8C-633B-49E4-A82D-5399FD9F4069@pooteeweet.org> References: <4A370CB2.9060602@chiaraquartet.net> <4E6F2E8C-633B-49E4-A82D-5399FD9F4069@pooteeweet.org> Date: Tue, 16 Jun 2009 10:09:43 +0200 Message-ID: To: Lukas Kahwe Smith Cc: Greg Beaver , PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] set_magic_quotes_runtime is still E_DEPRECATED From: pierre.php@gmail.com (Pierre Joye) hi, On Tue, Jun 16, 2009 at 9:46 AM, Lukas Kahwe Smith wrot= e: > > On 16.06.2009, at 05:08, Greg Beaver wrote: > >> Hi, >> >> in PHP_5_3 if you're using set_magic_quotes_runtime(0), it raises an >> E_DEPRECATED. =A0I thought all that argument was resolved to only throw >> E_DEPRECATED for set_magic_quotes_runtime(1)? >> >> This is a major pain if magic_quotes are enabled and you need to turn >> them off to do unserialize or serialize to a file. > > > The purpose of E_DEPRECATED is to alert of changes in up coming major PHP > versions. > > So if the function is removed entirely from PHP6, then the way things are= is > correct. If the function still exists, but simply doesn't do anything (or > even raises an error) when "set_magic_quotes_runtime(1)" is called, but > silently continues when "set_magic_quotes_runtime(0)" is called, then it > should be changed as per Greg's request. The set_magic_quotes_runtime is removed in php6, not the getter. The getter always returns FALSE without any notice or warning. I think it makes sense to keep the deprecate warning for the setter. Cheers, --=20 Pierre http://blog.thepimp.net | http://www.libgd.org