On Tue, Jun 16, 2009 at 9:10 PM, Greg Beaver<g...@chiaraquartet.net> wrote: > Hannes Magnusson wrote: >> On Tue, Jun 16, 2009 at 20:59, Greg Beaver<g...@chiaraquartet.net> 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. It says: >>> >>> - The following ini directives will now emit an E_DEPRECATED warning >>> upon startup if they are activated: >>> >> >> Thats correct. >> bj...@jessica:~$ /usr/src/php/5.3/sapi/cli/php -n -ddefine_syslog_variables=1 >> PHP Warning: Directive '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=1) there is no E_DEPRECATED at startup. > > try: > > php -n -ddisplay_startup_errors=1 -derror_reporting=E_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, -- Pierre http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php