Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54067 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31251 invoked from network); 19 Jul 2011 07:07:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2011 07:07:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:33510] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/A9-57459-A4D252E4 for ; Tue, 19 Jul 2011 03:07:56 -0400 Received: by yxk8 with SMTP id 8so1789182yxk.29 for ; Tue, 19 Jul 2011 00:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=AtHglUobAqRWeo/1080VA5yN19sxaDnnKA3fjcakMMA=; b=ZLW2hZfyh18ZU4I7nC47dWcsBHki4gd/6eZvsIC+m78PPvbeqVP9p6vmujPo4lN4Df Y7YbmFqq7B7k8gO1xojDkIZKSdL1jqhA8rpyUmnnZNPsoJGJ+wVjThS4MMlNrYrYRrw6 haQc6avdzJNMfarrucw3N+45NaIDK3/3Gqi1o= MIME-Version: 1.0 Received: by 10.146.190.7 with SMTP id n7mr6244672yaf.28.1311059271989; Tue, 19 Jul 2011 00:07:51 -0700 (PDT) Received: by 10.147.38.17 with HTTP; Tue, 19 Jul 2011 00:07:51 -0700 (PDT) In-Reply-To: <4E2529DD.4050104@thelounge.net> References: <20110718143939.GB23368@panix.com> <4E24B7AA.20309@gmail.com> <4E24BD03.9040108@thelounge.net> <4E2529DD.4050104@thelounge.net> Date: Tue, 19 Jul 2011 09:07:51 +0200 Message-ID: To: Reindl Harald Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Magic Quotes in PHP, the Finalle From: tyra3l@gmail.com (Ferenc Kovacs) On Tue, Jul 19, 2011 at 8:53 AM, Reindl Harald wro= te: > > > Am 19.07.2011 01:12, schrieb Ferenc Kovacs: >>> since this is default OFF there is no warning if not configured >>> empty php.ini implicits =3D Off >> >> sadly no: >> >> tyrael@thor:~/checkouts$ php -n -r 'echo PHP_VERSION."\n";echo >> ini_get("magic_quotes_gpc")."\n";' >> 5.3.6-6~dotdeb.1 >> 1 >> >> tyrael@chronos:~/checkouts/php/src/php/php-src/branches/PHP_5_4$ >> ./sapi/cli/php -n -r 'echo PHP_VERSION."\n";echo >> ini_get("magic_quotes_gpc")."\n";' >> 5.4.0alpha2-dev >> 1 > > i expect if someone is writing the code to deprecate a feature > he well also set it's default to 0 - what now is set does > not interest > > magic_quotes_gpc is deprecated as of 5.3 http://php.net/manual/en/migration53.deprecated.php only the default values was left to 1 I also expected this to be changed to 0, but it seems it isn't a clear cut as Stas expressed in the 5.4 vote thread that the defaults shouldn't be used anyway. but my whole point for this was that "since this is default OFF there is no warning if not configured empty php.ini implicits =3D Off" isn't true. if you omit a configuration option from your php.ini not Off, but the default will be used, which is currently On for the magic_quotes_gpc, and it isn't 100% sure that we will change the default, of course I think we should set it to the same values as we use for the php.ini-production. sor I think that the original idea "Raise E_DEPRECATED when running the CGI or any web server SAPI and a php.ini file does not contain =E2=80=9Cmagic_quotes_gpc =3D Off" would be a bad idea, I agree with =C3=81= ngel: PHP should not fail if one configuration line is missing from the file. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu