Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44301 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9232 invoked from network); 16 Jun 2009 10:34:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2009 10:34:02 -0000 Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.157 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 72.14.220.157 fg-out-1718.google.com Received: from [72.14.220.157] ([72.14.220.157:17387] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/D0-18251-815773A4 for ; Tue, 16 Jun 2009 06:34:01 -0400 Received: by fg-out-1718.google.com with SMTP id 22so554286fge.0 for ; Tue, 16 Jun 2009 03:33:57 -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=JMzDPw/H8nfbRv5gkK8LmualrmLcA2O+DWeGFuY6HMo=; b=c4ekDRLA+2gad2u6JPiu5fElBx7xqb8nlHsVUoxPec6i8gOouHfGp9/MGFBO+Y9dq0 whi6+7Cn+xD2C2YE0w1Gw1Sh/hxDf8oFONfH3Cn+3vnw2UUU/f0DsTYXgR4ddt9jfbas CmmARSVPL7YygX38hWBhvxzFwh+AHuWs4id8U= 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=AcCNjZG8B33Z0od67x5Yhh/JGL4nIrTw3+R+QAiRDhauKIF2AaJgqUVVds83lm5pHE Smf/LaOfqnOkS/B1xbchy1v7sXOl/dtq+W5jZx2p/m0qKsfoO/Bqs/qYhzOoPxB9mGN2 A4KDrU3ZhNFfz5PyVBU724pOP8hIVucLn0iyY= MIME-Version: 1.0 Received: by 10.86.79.6 with SMTP id c6mr7455715fgb.52.1245148437467; Tue, 16 Jun 2009 03:33:57 -0700 (PDT) In-Reply-To: <4A3772DD.2010604@daevel.net> References: <4A370CB2.9060602@chiaraquartet.net> <4E6F2E8C-633B-49E4-A82D-5399FD9F4069@pooteeweet.org> <7f3ed2c30906160320m4625ae89i1b85c036ba798de0@mail.gmail.com> <4A3772DD.2010604@daevel.net> Date: Tue, 16 Jun 2009 12:33:52 +0200 Message-ID: <7f3ed2c30906160333s3dda0831q5a2fed430fcfbd38@mail.gmail.com> To: "Olivier B." Cc: 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: hannes.magnusson@gmail.com (Hannes Magnusson) On Tue, Jun 16, 2009 at 12:24, Olivier B. wrote: > Hannes Magnusson a =E9crit : >> >> On Tue, Jun 16, 2009 at 10:09, Pierre Joye wrote: >> >>> >>> hi, >>> >>> On Tue, Jun 16, 2009 at 9:46 AM, Lukas Kahwe Smith >>> wrote: >>> >>>> >>>> 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 thr= ow >>>>> 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. >>>>> >>> >>> I think it makes sense to keep the deprecate warning for the setter. >>> >> >> >> Even to disable MQ runtime? >> I don't know.. Since MQ is deprecated why are we throwing warnings >> when people are trying to turn it off? >> >> -Hannes >> >> > > Because in PHP 6 (or next) the function "set_magic_quotes_runtime()" will= be > removed, so calling it without checking ini_get() will trigger a fatal > error, no ? And there is the problem. The recommended way is: if(get_magic_quotes_runtime()) { set_magic_quotes_runtime(false); } So, if MQ runtime is enabled - even "Doing The Right Thing" (turning it off) will throw deprecated warnings. -Hannes