PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_FTP » Bug #1445

Improvement of setTimeout() method + timout handling

Details

Submitted2004-05-19 19:04 UTC
Frompear dot 20 dot fab at spamgourmet dot com
Assignedtoby
StatusClosed
PackageNet_FTP
PHP Version4.3.1
OSWin 2000
Roadmaps(Not assigned)

Comments

[2004-05-19 19:04 UTC] pear dot 20 dot fab at spamgourmet dot com

Description:
------------
When using Net_FTP to connect to a slow or even offline ftp server, PHP will use the standard timeout of 90 seconds. This can be very annoying because the setTimeout() only works if an stream handle has already been created -> a lot of time wasted. So it would be nice to change the timeout handling a bit.

I added a new private attribute (_timeout) and modified the constructor and the setTimeout() method.

Regards, Nils.

Reproduce code:
---------------
http://www.affenkrieger.de/FTP.php