From: sentomas at hotmail dot com
Operating system: FreeBSD
PHP version: 4.3.3
PHP Bug Type: FTP related
Bug description: ftp_rawlist long list retrive fail after 60 sec

Description:
------------
if the ftp list so long that can retrive in 60sec, the ftp_rawlist()
automaticly fail.

I re-set FTP timeout and default_socket timeout and of cause use
commandline mode , but it didnt seems to work.



Reproduce code:
---------------
//-lR option in order to make ftp server reply whole dir list, which might
be very very long, so its take time more than 60 sec.
$dirlist = ftp_rawlist($conn_id, "-lR");
if ($dirlist === false){
//defintely fail whatever you do after 60sec
//commandline mode
return "fail";
}

Expected result:
----------------
might be some kind of "default_socket_timeout" limit in inter-core?
because i saw the ftp.c will write to the list tmpfile first then output
to array.


--
Edit bug report at [url]http://bugs.php.net/?id=25641&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25641&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25641&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25641&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25641&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25641&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25641&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25641&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25641&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25641&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25641&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25641&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25641&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25641&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25641&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25641&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=25641&r=float[/url]