Re: set_magic_quotes_runtime is still E_DEPRECATED
| From: | Greg Beaver | Date: | Tue, 16 Jun 2009 19:10:11 +0000 |
| Subject: | Re: set_magic_quotes_runtime is still E_DEPRECATED | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44325@lists.php.net to get a copy of this message | ||
Hannes Magnusson wrote:
> On Tue, Jun 16, 2009 at 20:59, Greg Beaver<greg@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.
> bjori@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"));'
Greg