Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44304 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25185 invoked from network); 16 Jun 2009 11:36:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2009 11:36:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.214 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.219.214 mail-ew0-f214.google.com Received: from [209.85.219.214] ([209.85.219.214:60594] helo=mail-ew0-f214.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/F3-18251-CB3873A4 for ; Tue, 16 Jun 2009 07:36:29 -0400 Received: by ewy10 with SMTP id 10so5816879ewy.23 for ; Tue, 16 Jun 2009 04:36:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=aHrJ/sWmHGPiSypWb9XrWjXR0AUJuGv8dOafiX/rZfI=; b=tKiEpoyrK7A/PxULk3FT9g9Matg85irBSM5L7VwiSOk0F5b4P+VwBklXRNbhTizzYb SYjXtCJBuWF23Ik2md1KNIUi45GCG/F2K75/2tCtjx00CPC3ip2cMRgWGyWlptYQvHX6 5WfYxWevja1PXl0IgO6zKaNpKDo9B9Qjdi8jE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=KNPc5daIeH+/TyCTudfhPSaI4wQ45xM1y2Z8A265QN0Bh1fL2756uC6/+7fr3ao/VI y3/+hZxqhSbKPgIj6KihmNH1wYrHJr0WOTcE1S+gWLLWIe8TQg2d6bn9pkmowrdkgMDu oFgvXytCtS3DMaUmjFKh4iHNVGBJi/9E6d6qQ= Received: by 10.211.178.8 with SMTP id f8mr3464363ebp.51.1245152186016; Tue, 16 Jun 2009 04:36:26 -0700 (PDT) Received: from ?192.168.1.25? (136.Red-83-51-57.dynamicIP.rima-tde.net [83.51.57.136]) by mx.google.com with ESMTPS id 24sm31036eyx.43.2009.06.16.04.36.24 (version=SSLv3 cipher=RC4-MD5); Tue, 16 Jun 2009 04:36:25 -0700 (PDT) Message-ID: <4A3783BA.6030008@gmail.com> Date: Tue, 16 Jun 2009 13:36:26 +0200 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Pierre Joye CC: internals@lists.php.net References: <4A370CB2.9060602@chiaraquartet.net> <4E6F2E8C-633B-49E4-A82D-5399FD9F4069@pooteeweet.org> <7f3ed2c30906160320m4625ae89i1b85c036ba798de0@mail.gmail.com> <4A3772DD.2010604@daevel.net> <7f3ed2c30906160333s3dda0831q5a2fed430fcfbd38@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] set_magic_quotes_runtime is still E_DEPRECATED From: keisial@gmail.com (Keisial) Pierre Joye wrote: > On Tue, Jun 16, 2009 at 12:33 PM, Hannes > Magnusson wrote: > >>> 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. >> > > And as get_magic_quotes_runtime() always returns FALSE, > set_magic_quotes_runtime(false) will never be called. > > Cheers, > Hannes refers to 5.3. It will work on PHP 6, but on 5.3 it will throw a the warning despite you doing the right thing. I propose the following behavior: "Throw a deprecated warning unless magic quotes are currently enabled and the parameter is to disable them".