#43118 [Opn->Fbk]: ftp_login() cause AUTH response from ftp server

From: Date: Mon, 12 Nov 2007 10:10:25 +0000
Subject: #43118 [Opn->Fbk]: ftp_login() cause AUTH response from ftp server
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-119510@lists.php.net to get a copy of this message
ID: 43118 Updated by: tony2001@php.net 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

« previous php.bugs (#119510) next »