Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38017 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34567 invoked from network); 30 May 2008 22:59:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 May 2008 22:59:37 -0000 Authentication-Results: pb1.pair.com header.from=christopher.jones@oracle.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=christopher.jones@oracle.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oracle.com from 148.87.113.118 cause and error) X-PHP-List-Original-Sender: christopher.jones@oracle.com X-Host-Fingerprint: 148.87.113.118 rgminet01.oracle.com Linux 2.4/2.6 Received: from [148.87.113.118] ([148.87.113.118:63041] helo=rgminet01.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/00-34010-7D680484 for ; Fri, 30 May 2008 18:59:36 -0400 Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m4UMxV3D031236; Fri, 30 May 2008 16:59:31 -0600 Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m4UKVDvY015909; Fri, 30 May 2008 16:59:30 -0600 Received: from dhcp-amer-csvpn-gw2-141-144-73-38.vpn.oracle.com by acsmt358.oracle.com with ESMTP id 9961259091212188359; Fri, 30 May 2008 17:59:19 -0500 Message-ID: <484086C6.9050109@oracle.com> Date: Fri, 30 May 2008 15:59:18 -0700 User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: Hannes Magnusson CC: PHP Developers Mailing List Content-Type: multipart/mixed; boundary="------------000606040401090307040208" X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE Subject: pear proxy install patch From: christopher.jones@oracle.com (Christopher Jones) --------------000606040401090307040208 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hannes (or anyone), Can you apply these patches for pear? I've reverted to use wget by default. The newish fetch.php is used as a last resort. I fixed one real message typo in fetch.php, and changed the humourous error message prefix to something easier to grep, i.e. "Error". Chris -- Christopher Jones, Oracle Email: christopher.jones@oracle.com Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/ Free PHP Book: http://tinyurl.com/f8jad --------------000606040401090307040208 Content-Type: text/x-diff; name="Makefile.frag.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile.frag.patch" Index: Makefile.frag =================================================================== RCS file: /repository/php-src/pear/Attic/Makefile.frag,v retrieving revision 1.35.6.10.2.2.2.2 diff -u -a -r1.35.6.10.2.2.2.2 Makefile.frag --- Makefile.frag 19 May 2008 15:20:55 -0000 1.35.6.10.2.2.2.2 +++ Makefile.frag 30 May 2008 22:39:41 -0000 @@ -5,6 +5,9 @@ # Skip all php.ini files altogether PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dsafe_mode=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0 +WGET = `which wget 2>/dev/null` +FETCH = `which fetch 2>/dev/null` + install-pear-installer: $(SAPI_CLI_PATH) @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(builddir)/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" @@ -14,7 +17,13 @@ if test -f $(srcdir)/install-pear-nozlib.phar; then \ cp $(srcdir)/install-pear-nozlib.phar $(builddir)/install-pear-nozlib.phar; \ else \ - $(top_builddir)/sapi/cli/php -n $(srcdir)/fetch.php http://pear.php.net/install-pear-nozlib.phar $(builddir)/install-pear-nozlib.phar; \ + if test ! -z "$(WGET)" && test -x "$(WGET)"; then \ + "$(WGET)" http://pear.php.net/install-pear-nozlib.phar -nd -P $(builddir)/; \ + elif test ! -z "$(FETCH)" && test -x "$(FETCH)"; then \ + "$(FETCH)" -o $(builddir)/ http://pear.php.net/install-pear-nozlib.phar; \ + else \ + $(top_builddir)/sapi/cli/php -n $(srcdir)/fetch.php http://pear.php.net/install-pear-nozlib.phar $(builddir)/install-pear-nozlib.phar; \ + fi \ fi \ fi @if test -f $(builddir)/install-pear-nozlib.phar && $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \ --------------000606040401090307040208 Content-Type: text/x-diff; name="fetch.php.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fetch.php.patch" Index: fetch.php =================================================================== RCS file: /repository/php-src/pear/Attic/fetch.php,v retrieving revision 1.1.2.1 diff -u -a -r1.1.2.1 fetch.php --- fetch.php 14 Apr 2008 16:56:50 -0000 1.1.2.1 +++ fetch.php 30 May 2008 22:39:56 -0000 @@ -1,4 +1,5 @@ \n", $argv[0]); @@ -22,7 +23,7 @@ break; case STREAM_NOTIFY_CONNECT: - echo "Conntected...\n"; + echo "Connected...\n"; break; case STREAM_NOTIFY_FILE_SIZE_IS: @@ -58,7 +59,7 @@ } $err = error_get_last(); -echo "\nErrrrrorr..\n", $err["message"], "\n"; +echo "\nError:\n", $err["message"], "\n"; exit(1); --------------000606040401090307040208--