PHP :: Request #64523 :: php.ini error_reporting XOR

Request #64523 php.ini error_reporting XOR
Submitted: 2013-03-26 19:17 UTC Modified: 2013-03-27 20:38 UTC
From: dm@php.net Assigned: lstrojny (profile)
Status: Closed Package: PHP options/info functions
PHP Version: 5.4.13 OS:
Private report: No CVE-ID: None

 [2013-03-26 19:17 UTC] dm@php.net

Description:
------------
Setting php.ini error_reporting value to:
error_reporting = E_ALL ^ E_NOTICE ^ E_WARNING ^ E_STRICT ^ E_DEPRECATED

> php -i | grep error_reporting
> error_reporting => 32767 ^ 8 ^ 2 ^ 2048 ^ 8192

It is not the same as:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_WARNING & ~E_DEPRECATED

> php -i | grep error_reporting
> error_reporting => 22517

Although, eval'd integer output is the same: http://3v4l.org/VuDBW#v540 (22517)

This works correctly when error reporting is set via script.

Default php.ini https://github.com/php/php-src/blob/master/php.ini-development#L50 says XOR is supported, but in fact, it's not behaving like that.


Patches

fix_zend_ini_do_op_xor (last revision 2013-03-26 22:56 UTC by dm@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2013-03-26 23:16 UTC] felipe@php.net

-Type: Bug +Type: Feature/Change Request