ID: 34786 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Assigned +Status: Closed Bug Type: Scripting Engine problem Operating System: linux (gentoo) PHP Version: 5CVS-2005-10-08 (CVS) Assigned To: tony2001 New Comment:
Fixed in CVS HEAD and PHP_5_1. Previous Comments: ------------------------------------------------------------------------ [2005-10-08 14:22:46] [EMAIL PROTECTED] Assigned to the engine expert. :) ------------------------------------------------------------------------ [2005-10-08 04:09:29] [EMAIL PROTECTED] 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