Edit report at https://bugs.php.net/bug.php?id=64523&edit=1

 ID:                 64523
 Updated by:         lstro...@php.net
 Reported by:        d...@php.net
 Summary:            php.ini error_reporting XOR
-Status:             Assigned
+Status:             Closed
 Type:               Feature/Change Request
 Package:            PHP options/info functions
 PHP Version:        5.4.13
 Assigned To:        lstrojny
 Block user comment: N
 Private report:     N

 New Comment:

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
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2013-03-26 22:56:56] d...@php.net

The following patch has been added/updated:

Patch Name: fix_zend_ini_do_op_xor
Revision:   1364338616
URL:        
https://bugs.php.net/patch-display.php?bug=64523&patch=fix_zend_ini_do_op_xor&revision=1364338616

------------------------------------------------------------------------
[2013-03-26 20:01:40] d...@php.net

XOR not parsed (thanks @ircmaxell)
http://lxr.php.net/xref/PHP_5_4/Zend/zend_ini_parser.y#63

------------------------------------------------------------------------
[2013-03-26 19:27:53] d...@php.net

Commit 
(https://github.com/php/php-src/commit/e0669bf1ab0892132bf6fe6f81587bfba45e7329#L0R50)
 when bitwise XOR added to php.ini.

------------------------------------------------------------------------
[2013-03-26 19:17:29] d...@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.



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64523&edit=1

Reply via email to