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

From: Date: Tue, 28 Mar 2006 08:32:11 +0000
Subject: #36882 [Opn->Fbk]: ftp upload failed if curlwrappers are enabled.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94958@lists.php.net to get a copy of this message
ID: 36882 Updated by: tony2001@php.net Reported By: sos at sokhapkin dot dyndns dot org -Status: Open +Status: Feedback Bug Type: FTP related Operating System: Linux PHP Version: 5.1.2 New Comment: What FTP server do you use and are you able to reproduce it with some publicly available FTP server? Previous Comments: ------------------------------------------------------------------------ [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 (#94958) next »