ID: 36882
Updated by: [EMAIL PROTECTED]
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:[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