Newsgroups: php.internals,php.pear.dev Path: news.php.net Xref: news.php.net php.internals:19359 php.pear.dev:40081 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43805 invoked by uid 1010); 4 Oct 2005 04:27:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 43769 invoked from network); 4 Oct 2005 04:27:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Oct 2005 04:27:45 -0000 X-Host-Fingerprint: 69.64.38.41 bluga.net Linux 2.5 (sometimes 2.4) (4) Received: from ([69.64.38.41:36702] helo=bluga.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A8/73-54476-0C402434 for ; Tue, 04 Oct 2005 00:27:44 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by bluga.net (Postfix) with ESMTP id A621B21C9F5; Mon, 3 Oct 2005 23:28:27 -0500 (CDT) Received: from bluga.net ([127.0.0.1]) by localhost (bluga.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14529-10; Mon, 3 Oct 2005 23:28:27 -0500 (CDT) Received: from [192.168.0.104] (CPE-67-48-78-96.neb.res.rr.com [67.48.78.96]) by bluga.net (Postfix) with ESMTP id 4BA0321C9F4; Mon, 3 Oct 2005 23:28:27 -0500 (CDT) Message-ID: <434204B3.2000703@chiaraquartet.net> Date: Mon, 03 Oct 2005 23:27:31 -0500 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Curt Zirzow CC: internals@lists.php.net, pear-dev@lists.php.net References: <433EA995.50304@chiaraquartet.net> In-Reply-To: X-Enigmail-Version: 0.92.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new using ClamAV at bluga.net Subject: Re: phar and e_strict From: greg@chiaraquartet.net (Greg Beaver) Curt Zirzow wrote: > On Sat, 01 Oct 2005 08:21:57 -0700, Greg Beaver wrote: > >>I've been running the pear command using PHP 5.1rc1 ever since it came >>out, and it works just fine. This is a problem specific to the >>install-pear.phar that in fact did not happen just 2 weeks ago - perhaps >>something has changed in PHP 5.1 itself? > > > A little side track on the E_STRICT issue... I ran into two issues while > installing php 5.1-branch. > > 1. zlib is required now with php, and by default php isn't installed > with zlib nor does configure catch this, so, while make install is > running and when pear is being installed make dies leaving a bad > installation. I could eliminate this requirement, at the expense of a larger .phar file (3.3MB instead of 640k). > I have have a patch for configure.in that is ready that will add a check > for zlib in the configure process to avoid the make install bailing. > > 2. I'm not sure if the release of php5.1 is going to include the > install-pear.phar file, but if I don't have that file within the pear/ > directory, make install also requires that the system has wget > installed, causing a fail in make install as well. > > I can write a patch for configure.in to check for wget (or fetch on *bsd > machines), if the .phar file isn't going to be included with a release. Better (I discussed this with Andi, but haven't had time to do anything fruitful yet) is to write a short PHP script that would download it. Just now, it occurs to me that by changing the wget call in Makefile.frag from: wget http://pear.php.net/install-pear.phar -nd -P $(srcdir); to: @$(top_builddir)/sapi/cli/php -dallow_url_fopen=1 -r "$a = file_get_contents('http://pear.php.net/install-pear.phar');file_put_contents($_SERVER['argv'][1] . '/install-pear.phar',$a);" $(srcdir) this might be our cross-platform ticket. Could one of you kind folks try this, and commit if it works? Thanks, Greg