Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44302 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11820 invoked from network); 16 Jun 2009 10:47:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2009 10:47:19 -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 209.85.220.220 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: 209.85.220.220 mail-fx0-f220.google.com Received: from [209.85.220.220] ([209.85.220.220:54963] helo=mail-fx0-f220.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/51-18251-538773A4 for ; Tue, 16 Jun 2009 06:47:18 -0400 Received: by fxm20 with SMTP id 20so4760097fxm.23 for ; Tue, 16 Jun 2009 03:47:13 -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=6NffmXqxHrvmwfJl2J9eNYqNSht/p9MtrixXA2/yulg=; b=edd1uzuZf6vHG3L8Nd933ci62jgJzdYyxHv2SlTZcd8bH2zuOv/sK7lbEacDi33kXc x/4GyeqJiNnUK1rgyqLUx4CMC9vng8bmElagB/mSQX4N5PAQcUUFW1k598Z3MYGFd7Az ubWgpLQoco3JYE1df6gE0XUOuDEGy+p8lo4Mw= 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=rLLIedmyNXOCkFYjn3Pw4ctMU3xCx1nVivR8ij+RkGR4XLnygE31AFV91BcyeWWPjS Kg5KxVo0QCCtkjm4vFmqohrktYffvAqdlDeHojWEZy/QJUJRPSysrzQY1LuopI2nXeJq sVHIIacpXWnUPGG+DDdVC/8uGFVqu41hFjkpM= MIME-Version: 1.0 Received: by 10.86.91.13 with SMTP id o13mr7496609fgb.23.1245149228973; Tue, 16 Jun 2009 03:47:08 -0700 (PDT) In-Reply-To: <7f3ed2c30906160333s3dda0831q5a2fed430fcfbd38@mail.gmail.com> References: <4A370CB2.9060602@chiaraquartet.net> <4E6F2E8C-633B-49E4-A82D-5399FD9F4069@pooteeweet.org> <7f3ed2c30906160320m4625ae89i1b85c036ba798de0@mail.gmail.com> <4A3772DD.2010604@daevel.net> <7f3ed2c30906160333s3dda0831q5a2fed430fcfbd38@mail.gmail.com> Date: Tue, 16 Jun 2009 12:47:08 +0200 Message-ID: To: Hannes Magnusson Cc: "Olivier B." , 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) On Tue, Jun 16, 2009 at 12:33 PM, Hannes Magnusson wrote: >> Because in PHP 6 (or next) the function "set_magic_quotes_runtime()" wil= l 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()) { > =A0 =A0set_magic_quotes_runtime(false); > } > > So, if MQ runtime is enabled - even "Doing The Right Thing" (turning > it off) will throw deprecated warnings. And as get_magic_quotes_runtime() always returns FALSE, set_magic_quotes_runtime(false) will never be called. Cheers, --=20 Pierre http://blog.thepimp.net | http://www.libgd.org