#20812 [Fbk->Opn]: ftp_get returns FALSE in case of success

From: Date: Thu, 05 Dec 2002 09:50:58 +0000
Subject: #20812 [Fbk->Opn]: ftp_get returns FALSE in case of success
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26712@lists.php.net to get a copy of this message
 ID:               20812
 User updated by:  db@unit-netz.de
 Reported By:      db@unit-netz.de
-Status:           Feedback
+Status:           Open
 Bug Type:         FTP related
 Operating System: Linux 2.2 / SuSE 6.3
 PHP Version:      4.3.0RC2
 New Comment:

This simple script works fine, but displays "Failed!"
That's a hard "cosmetic" problem.

<?
$conn=ftp_connect("ftphost");
ftp_login($conn,"ftpuser","ftppass");
ftp_chdir($conn,"/ftpdir");
if (ftp_get($conn,"/tmp/ftptest","ftp.txt",FTP_BINARY))
echo "Success!";
else
echo "Failed!";
ftp_quit($conn);
?>


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

[2002-12-04 11:50:36] derick@php.net

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


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

[2002-12-04 09:31:48] db@unit-netz.de

I forgot: we use ProFTPD 1.2.6

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

[2002-12-04 09:28:42] db@unit-netz.de

The PHPFTP-script running fine with PHP 4.2.3 won't work with PHP
4.3.0RC2 because ftp_get returns false in spite of doing its work
correctly.

DB

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


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



Thread (5 messages)

« previous php.bugs (#26712) next »