#34786 [Opn->Asn]: 2 @ results in change to error_reporting() to random value
| From: | sniper@php.net | Date: | Sat, 08 Oct 2005 12:22:47 +0000 |
| Subject: | #34786 [Opn->Asn]: 2 @ results in change to error_reporting() to random value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86243@lists.php.net to get a copy of this message | ||
ID: 34786
Updated by: sniper@php.net
Reported By: cellog@php.net
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
Operating System: linux (gentoo)
PHP Version: 5CVS-2005-10-08 (CVS)
Assigned To: dmitry
New Comment:
Assigned to the engine expert. :)
Previous Comments:
------------------------------------------------------------------------
[2005-10-08 04:11:56] cellog@php.net
Wez told me to assign this to Dmitry
------------------------------------------------------------------------
[2005-10-08 04:09:29] cellog@php.net
Description:
------------
This is a critical bug in PHP 5.1 (PHP_5_1) latest CVS.
running "make install-pear" results in all kinds of E_STRICT warnings.
This is in spite of an explicit -derror_reporting=E_ALL
I traced the problem using var_dump(error_reporting()); peppered
throughout the source of install-pear.phar to a single line located in
cvs at pear-core/Archive/Tar.php on line 706:
@fseek($this->_file, @ftell($this->_file)+($p_len*512));
removing the second @ in front of ftell() fixes the problem.
Reproduce code:
---------------
make install-pear.phar
use http://pear.php.net/~greg/install-pear.phar
for a debug .phar that
has inserted a few var_dump(error_reporting()); around the offending
line. int(2047) is E_ALL, and after the line, there are 2
var_dump(error_reporting()) that spit out random integers, ranging from
10 to numbers like 14803908 to -14378917.
A valgrind trace is at:
http://pear.php.net/~greg/pearcrash.txt
Expected result:
----------------
works with no warnings
Actual result:
--------------
install works sometimes, but there are lots of E_STRICT warnings.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34786&edit=1