Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19326 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60842 invoked by uid 1010); 1 Oct 2005 23:22:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60827 invoked from network); 1 Oct 2005 23:22:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Oct 2005 23:22:05 -0000 X-Host-Fingerprint: 82.165.35.142 thinkforge.org Linux 2.4/2.6 Received: from ([82.165.35.142:14473] helo=mail.mayflowersystem.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 86/74-54476-B1A1F334 for ; Sat, 01 Oct 2005 19:22:03 -0400 Received: (qmail 5978 invoked by uid 60010); 1 Oct 2005 23:21:59 -0000 Received: from 84.150.104.49 by mail (envelope-from , uid 89) with qmail-scanner-1.24 (uvscan: v4.3.20/v4362. spamassassin: 2.63. Clear:RC:1(84.150.104.49):. Processed in 0.5608 secs); 01 Oct 2005 23:21:59 -0000 Received: from unknown (HELO ?192.168.1.9?) (schlueter@mayflower.de@84.150.104.49) by 0 with (RC4-MD5 encrypted) SMTP; 1 Oct 2005 23:21:58 -0000 To: internals@lists.php.net Date: Sun, 2 Oct 2005 01:21:13 +0200 User-Agent: KMail/1.8 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200510020121.14501.johannes@php.net> Subject: Re: [PHP-DEV] phar and e_strict From: johannes@php.net (Johannes Schlueter) 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