#36882 [Ver->Fbk]: ftp upload failed if curlwrappers are enabled.

From: Date: Mon, 16 Oct 2006 15:08:23 +0000
Subject: #36882 [Ver->Fbk]: ftp upload failed if curlwrappers are enabled.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103592@lists.php.net to get a copy of this message
ID: 36882 Updated by: iliaa@php.net Reported By: sos at sokhapkin dot dyndns dot org -Status: Verified +Status: Feedback Bug Type: cURL related Operating System: Linux PHP Version: 5.1.2 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2006-04-10 11:59:40] sniper@php.net See also bug #33770 ------------------------------------------------------------------------ [2006-03-28 13:39:36] sos at sokhapkin dot dyndns dot org 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. ------------------------------------------------------------------------ [2006-03-28 10:32:05] tony2001@php.net 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:password@server/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

« previous php.bugs (#103592) next »