|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #64523 php.ini error_reporting XOR
Submitted: 2013-03-26 19:17 UTC Modified: 2013-03-27 20:38 UTC
From: Assigned: lstrojny (profile)
Status: Closed Package: PHP options/info functions
PHP Version: 5.4.13 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2013-03-26 19:17 UTC]
Setting php.ini error_reporting value to:

> 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: (22517)

This works correctly when error reporting is set via script.

Default php.ini says XOR is supported, but in fact, it's not behaving like that.


fix_zend_ini_do_op_xor (last revision 2013-03-26 22:56 UTC by

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-26 19:27 UTC]
Commit ( when bitwise XOR added to php.ini.
 [2013-03-26 20:01 UTC]
XOR not parsed (thanks @ircmaxell)
 [2013-03-26 22:56 UTC]
The following patch has been added/updated:

Patch Name: fix_zend_ini_do_op_xor
Revision:   1364338616
 [2013-03-26 23:16 UTC]
-Type: Bug +Type: Feature/Change Request
 [2013-03-27 20:26 UTC]
-Assigned To: +Assigned To: lstrojny
 [2013-03-27 20:38 UTC]
-Status: Assigned +Status: Closed
 [2013-03-27 20:38 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon May 17 20:01:24 2021 UTC