Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44326 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3091 invoked from network); 16 Jun 2009 19:13:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2009 19:13:35 -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 72.14.220.158 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.158 fg-out-1718.google.com Received: from [72.14.220.158] ([72.14.220.158:41863] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/A5-31180-EDEE73A4 for ; Tue, 16 Jun 2009 15:13:35 -0400 Received: by fg-out-1718.google.com with SMTP id 22so669646fge.0 for ; Tue, 16 Jun 2009 12:13:31 -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=IPxdWxEVegRahwlVvkWiUqiU/KFECT+tIvIRb9gqWmo=; b=CxoroPt8TjzKrSs5SrLLnIC++/rW/ATlglojqfGNI40qQkWsJIZDRB3ZRc8DIZT/Lm ezYFi1HC9aeTyqQYYlqMSFhWJrVnvmk3FHkGQUSJJLM5LnOWGGBF0OPrG8wM1OdPqDjP d5sR8G/FZjY9liMsD4JgieOMWb0PkZxyArO6M= 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=EN+rwjOeGSszb9WSokzu6yWSJlNfbElmhTn93uHmKpkgIV8d+K+0NvZ7d3Kcv8il8F mILnLUQFjafsYEr4Vd+PGLzdEaRgx7q1xV+T77bq9yfid1q+IfzWtCfnGna9NMElVHYB 9Y8dm7x3Xk8rroA8IQ71qbyXNAmV7Ft8Jm6GE= MIME-Version: 1.0 Received: by 10.86.96.12 with SMTP id t12mr7901802fgb.77.1245179611503; Tue, 16 Jun 2009 12:13:31 -0700 (PDT) In-Reply-To: <4A37EE13.2020906@chiaraquartet.net> References: <4A370CB2.9060602@chiaraquartet.net> <7f3ed2c30906160333s3dda0831q5a2fed430fcfbd38@mail.gmail.com> <4A3783BA.6030008@gmail.com> <20090616140033.GA27274@panix.com> <4A37D8ED.3080308@chiaraquartet.net> <50E0C0BF-13EC-4C31-B66D-FC0F54417227@pooteeweet.org> <4A37EB7D.7010209@chiaraquartet.net> <7f3ed2c30906161205t2ff47bd7hfc9e51292fef6fb3@mail.gmail.com> <4A37EE13.2020906@chiaraquartet.net> Date: Tue, 16 Jun 2009 21:13:31 +0200 Message-ID: To: Greg Beaver Cc: Hannes Magnusson , Lukas Kahwe Smith , 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) On Tue, Jun 16, 2009 at 9:10 PM, Greg Beaver wrote: > Hannes Magnusson wrote: >> On Tue, Jun 16, 2009 at 20:59, Greg Beaver wrote= : >> >>> Lukas Kahwe Smith wrote: >>> >>>> 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 >>>> >>> OK, then the UPGRADING guide needs a slight revision. =A0It says: >>> >>> - The following ini directives will now emit an E_DEPRECATED warning >>> =A0 =A0 upon startup if they are activated: >>> >> >> Thats correct. >> bjori@jessica:~$ /usr/src/php/5.3/sapi/cli/php -n -ddefine_syslog_variab= les=3D1 >> PHP Warning: =A0Directive 'define_syslog_variables' is deprecated in PHP >> 5.3 and greater in Unknown on line 0 >> >> >> However, like I warned about, the warning is thrown so early that >> normal users won't ever see it. > Hi, > > If the directive is enabled by default (not by php.ini or by > -ddirective=3D1) there is no E_DEPRECATED at startup. > > try: > > php -n -ddisplay_startup_errors=3D1 -derror_reporting=3DE_DEPRECATED -r > 'var_dump(ini_get("magic_quotes_gpc"));' Because it is not set, it is the default value. We have to change the default value to 0. Cheers, --=20 Pierre http://blog.thepimp.net | http://www.libgd.org