#34786 [NEW]: 2 @ results in change to error_reporting() to random value
| From: | cellog@php.net | Date: | Sat, 08 Oct 2005 02:09:30 +0000 |
| Subject: | #34786 [NEW]: 2 @ results in change to error_reporting() to random value | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-86230@lists.php.net to get a copy of this message | ||
From: cellog@php.net
Operating system: linux (gentoo)
PHP version: 5CVS-2005-10-08 (CVS)
PHP Bug Type: Scripting Engine problem
Bug description: 2 @ results in change to error_reporting() to random value
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 bug report at http://bugs.php.net/?id=34786&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34786&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34786&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34786&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34786&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34786&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34786&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34786&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34786&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34786&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34786&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34786&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34786&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34786&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34786&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34786&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34786&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34786&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34786&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34786&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34786&r=mysqlcfg