ID:               43118
 Updated by:       [EMAIL PROTECTED]
 Reported By:      icameron at ihug dot co dot nz
-Status:           Open
+Status:           Feedback
 Bug Type:         FTP related
 Operating System: Fedora 7
 PHP Version:      5.2.4
 New Comment:

ftp_login() may return NULL only if the resource passed is no valid.
In all other cases it returns FALSE.


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

[2007-10-28 06:15:41] icameron at ihug dot co dot nz

Description:
------------
(while using net2ftp on fedora 7 to connect to a proftpd 1.3 server

$login_result =ftp_login($conn_id, $net2ftp_globals["username"],
$net2ftp_password);

gives a response AUTH warning and $login_result is null

Reproduce code:
---------------
<?php

$username="user";
$password="password";

$ftp_server="ftp.example.com";

// set up a connection 
$conn_id = ftp_connect($ftp_server) ;

$login_result =ftp_login($conn_id, $username, $password);
?>


Expected result:
----------------
true

Actual result:
--------------
null


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


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

Reply via email to