php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25374 PEAR fails to install phpUnit when proxy port not specified
Submitted: 2003-09-03 01:16 UTC Modified: 2004-03-15 08:36 UTC
From: cjbj at hotmail dot com Assigned:
Status: No Feedback Package: PEAR related
PHP Version: 5CVS-2003-09-03 (dev) OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cjbj at hotmail dot com
New email:
PHP Version: OS:

 

 [2003-09-03 01:16 UTC] cjbj at hotmail dot com
Description:
------------
To confirm that http://bugs.php.net/bug.php?id=25350 was fixed in PHP5:

- I unzipped php-4.3.3-Win32.zip and moved it to c:\Program
  Files\php-4.3.3-Win32

- Renamed PEAR to PEAR_old

- Downloaded http://snaps.php.net/win32/php5-win32-latest.zip 
  (This is php5-200309030530)

- Copied the whole PEAR directory to c:\Program Files\php-4.3.3-Win32 

- Started a DOS window

- Changed directory to c:\Program Files\php-4.3.3-Win32 

- Ran "go-pear".  

For the proxy I entered http://myproxy.domain/

I chose the default layout, and chose to install the DB, phpUnit etc
packages.


Expected result:
----------------
Pear installs.

Actual result:
--------------
The install of phpUnit failed like:

    Loading zlib: ok
    Using local package: PEAR.............ok
    Using local package: Archive_Tar......ok
    Using local package: Console_Getopt....ok
    Using local package: XML_RPC..........ok
    Bootstrapping: PEAR...................(local) ok
    Bootstrapping: Archive_Tar............(local) ok
    Bootstrapping: Console_Getopt.........(local) ok
    Using local package: DB...............ok
    Using local package: Net_Socket.......ok
    Using local package: Net_SMTP.........ok
    Using local package: Mail.............ok
    Using local package: XML_Parser.......ok
    Downloading package: phpUnit..........download of http://pear.php.net/get/phpUnit failed: The operation completed successfull
    y.
     (0)
    Press any key to continue . . .

Pressing a key returned me to the OS.

When I reran "go-pear" and specified the proxy as

    http://myproxy.domain:80/ 

the install completed successfully (I was asked about modifying
php.ini, given URLS, the registry info etc) and the PEAR disk layout
seemed as expected.

I could reproduce the problem and verify the workaround each time I
subsequently ran "go-pear" to test this bug.

If a port is mandatory, then an explicit test and message
should report its absence.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-07 11:26 UTC] mj@php.net
The default port is 8080, so that's most likely the reason for your problem.
 [2004-03-08 11:00 UTC] neufeind@php.net
Having a look at an (almost recent) version go-pear.php, in detail: $Id: go-pear,v 1.57 2004/02/15 00:49:10 pajoye Exp $ 
I saw this:

        $tmp_proxy = parse_url($proxy);
        $phost     = $tmp_proxy['host'];
        $pport     = $tmp_proxy['port'];
        $fp = fsockopen($phost, $pport, $errno, $errstr); 

This implies that *no* standard-port is used in the source. So maybe the bug is still valid?

!Note! Do we decide for a standard of 8080? If yes, then please also note that the diff of program2002 (available at http://test.therusher.de/HTTP.diff) has an implicit usage of port 80 for the proxy, which should then also be fixed. That diff is related to this bug: http://bugs.php.net/?id=25310&edit=1
 [2004-03-15 08:36 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Sep 27 02:05:53 2022 UTC