Re: phar and e_strict

From: Date: Sat, 01 Oct 2005 23:21:13 +0000
Subject: Re: phar and e_strict
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-19326@lists.php.net to get a copy of this message
Hi, on a related note on the .phar stuff: I've just built PHP without zlib support and the PEAR install failed with | Installing PEAR environment: /opt/php-5.1-dev/lib/php/ | | Notice: Error: zlib extension is not enabled - gzinflate() function needed | for compressed .phars in /.../PHP_5_1/pear/install-pear.phar on line 393 | | Warning: main(phar://install-pear.phar/index.php): failed to open stream: | "PHP_Archive::stream_open" call failed | in /.../PHP_5_1/pear/install-pear.phar on line 633 | | Fatal error: main(): Failed opening required | 'phar://install-pear.phar/index.php' (include_path='.:') | in /home/johannes/src/php/cv/PHP_5_1/pear/install-pear.phar on line 633 | | make[1]: *** [install-pear-installer] Error 255 In my opinion there should be a nicer error message, maybe even at configure time. johannes On Saturday 01 October 2005 16:17, Derick Rethans wrote: > Hello! > > I am wondering why "make install-pear" comes up with hundreds of > e_strict warnings? The code tests for PHP 5.1 but makes use of all old > things that are now considered e_strict or deprecated. Besides this for > some reason setting error_reporting to 0 doesn't help at all. First of > all the code does: > > error_reporting(E_ALL);^M > if (version_compare(phpversion(), '5.1.0b1', '<')) {^M > die('Error: .phar files require PHP 5.1 or newer');^M > }^M > > But it seems E_STRICT is turned on later for some reason too. Can this > code please be upgraded to 1. not modify any error reporting setting and > 2. PHP 5.1 compatible code. Currently installing pear does not seem > to work at all with the .phar. > > regards, > Derick > -- > Derick Rethans > http://derickrethans.nl | > http://ez.no | http://xdebug.org

« previous php.internals (#19326) next »