ID:               36882
 User updated by:  sos at sokhapkin dot dyndns dot org
 Reported By:      sos at sokhapkin dot dyndns dot org
-Status:           Feedback
+Status:           Open
 Bug Type:         FTP related
 Operating System: Linux
 PHP Version:      5.1.2
 New Comment:

I tried with gentoo linux net-ftp/ftpd-0.17-r3 and AIX 5.3 ftp server,
I did not try public ftp servers.

PHP package maintainer for gentoo linux had reproduced the problem
also, and we tracked the problem down to curlwrappers configure
option.

I ran php cli under linux strace command and found out that after
connecting to ftp server php tries to read the server response but
passes 0 timeout to poll syscall and timeouts immediately.


Previous Comments:
------------------------------------------------------------------------

[2006-03-28 10:32:05] [EMAIL PROTECTED]

What FTP server do you use and are you able to reproduce it with some
publicly available FTP server?

------------------------------------------------------------------------

[2006-03-28 01:36:08] sos at sokhapkin dot dyndns dot org

Description:
------------
The following code fails with "fwrite failed" message if php is
configured with "--with-curlwrappers" option.

<?php
$h=fopen("ftp://user:[EMAIL PROTECTED]/tmp/test", "w");
if(!$h)
    die ("fopen failed");
if(!fwrite($h, "asd"))
    die ("fwrite failed");
fclose($h);
?>

Reproduce code:
---------------
See description

Expected result:
----------------
FTP is OK

Actual result:
--------------
"fwrite failed" message. The code runs OK if PHP is configured without
"--with-curlwrappers" option.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36882&edit=1

Reply via email to