Re: [RFC] Magic Quotes in PHP, the Finalle
| From: | Ferenc Kovacs | Date: | Mon, 18 Jul 2011 23:12:25 +0000 |
| Subject: | Re: [RFC] Magic Quotes in PHP, the Finalle | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54063@lists.php.net to get a copy of this message | ||
On Tue, Jul 19, 2011 at 1:08 AM, Reindl Harald <h.reindl@thelounge.net> wrote:
>
>
> Am 19.07.2011 00:46, schrieb Ángel González:
>> Derick Rethans wrote:
>>> "Raise E_DEPRECATED when running the CGI or any web server SAPI and a
>>> php.ini file does not contain “magic_quotes_gpc = Off”."
>>>
>>> and
>>>
>>> "Raise E_ERROR when running the CGI or any web server SAPI and a php.ini
>>> file does not contain “magic_quotes_gpc = Off”."
>>>
>>> Doesn't that mean that anybody not running a php.ini file will just
>>> always get this warning/error? I wouldn't want that as a php.ini file
>>> should be optional.
>>>
>>> cheers,
>>> Derick
>> That's also a big concern for me. PHP should not fail if one configuration line
>> is missing from the file.
>
> since this is default OFF there is no warning if not configured
> empty php.ini implicits = 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
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu