Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44318 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92962 invoked from network); 16 Jun 2009 18:57:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2009 18:57:47 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.155 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.155 fg-out-1718.google.com Received: from [72.14.220.155] ([72.14.220.155:7267] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/53-31180-92BE73A4 for ; Tue, 16 Jun 2009 14:57:46 -0400 Received: by fg-out-1718.google.com with SMTP id 16so1355592fgg.0 for ; Tue, 16 Jun 2009 11:57:43 -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=EocWQpqrXlREAw0yJ8jDGzfVSuhWWTEDEiBviCdKUVc=; b=ClQncPtWVZHBDMx8aH7KxxEY1Zxeq/WEja/r1keB9S8yTXc9ZqMelCE2BOnJ3rtrbO /G/kQbxn+B51Y8WfOel5cph96wZGlFmR2g/BtzCgkh2qTJkkRup4S/1zX7hrP44HvriP ZMhehEYPwdBtqx+YttI1WuhGh1NaiM47gZJZ4= 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=AnQt3xmTuQMGdWHQ0DIpDBHuJcSVliWrM/nC5V5R6Rn8jCdoGhx5ifcjzUKsQKyxQu ggL4RT04Er/9VJSQo/tWO3H6oadmi4jjI6msH3WaPlI5umpPBRBNNAPY73aNZNHNpT7M PDSXoB54oiyzLPKCY5ZWk7WAvvmW1Op7BkVqQ= MIME-Version: 1.0 Received: by 10.86.70.20 with SMTP id s20mr7930161fga.1.1245178663017; Tue, 16 Jun 2009 11:57:43 -0700 (PDT) In-Reply-To: <50E0C0BF-13EC-4C31-B66D-FC0F54417227@pooteeweet.org> References: <4A370CB2.9060602@chiaraquartet.net> <7f3ed2c30906160320m4625ae89i1b85c036ba798de0@mail.gmail.com> <4A3772DD.2010604@daevel.net> <7f3ed2c30906160333s3dda0831q5a2fed430fcfbd38@mail.gmail.com> <4A3783BA.6030008@gmail.com> <20090616140033.GA27274@panix.com> <4A37D8ED.3080308@chiaraquartet.net> <50E0C0BF-13EC-4C31-B66D-FC0F54417227@pooteeweet.org> Date: Tue, 16 Jun 2009 20:57:42 +0200 Message-ID: To: Lukas Kahwe Smith Cc: Greg Beaver , PHP Internals 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 Lukas, On Tue, Jun 16, 2009 at 8:49 PM, Lukas Kahwe Smith wrot= e: > > On 16.06.2009, at 19:39, Greg Beaver wrote: > >> Daniel Convissor wrote: >>> >>> Folks: >>> >>>> I propose the following behavior: "Throw a deprecated warning unless >>>> magic quotes are currently enabled and the >>>> parameter is to disable them". >>> >>> The function is going away. =A0A deprecated warning is necessary to ale= rt >>> people of this fact, no matter how the function is used. >> >> I'm sorry, but there is a bug here. >> >> On my system, magic_quotes_gpc is enabled by default, and no >> E_DEPRECATED warning is thrown. >> >> Check it out. =A0Compile a vanilla PHP 5.3, and run php -n -i |grep magi= c >> >> It's probably an oversight, but if it is intentional, we can't punish >> people for disabling something that is enabled by default. > > > 1) its not about "punishing", its about alerting people that they are > relying on stuff that will go away > 2) E_DEPRECATE is for development only and only as a check you enable now > and then > 3) its off in both of the php.ini's we will ship with 5.3 What Greg meant is: C:\Users\pierre\Documents\test\php530rc3tsvc9x86>php -n -i |find "magic" magic_quotes_gpc =3D> On =3D> On magic_quotes_runtime =3D> Off =3D> Off magic_quotes_sybase =3D> Off =3D> Off magic_quotes_gpc should be off by default (default value). I can commit the change now (as asked on IRC). But Lukas raises the question about changing default values in minor releases. As they are off in both php.ini, there is no reason to keep it On by default. Any opposition before I fix it? Cheers, --=20 Pierre http://blog.thepimp.net | http://www.libgd.org