php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43118 ftp_login() cause AUTH response from ftp server
Submitted: 2007-10-28 06:15 UTC Modified: 2007-11-20 01:00 UTC
From: icameron at ihug dot co dot nz Assigned:
Status: No Feedback Package: FTP related
PHP Version: 5.2.4 OS: Fedora 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: icameron at ihug dot co dot nz
New email:
PHP Version: OS:

 

 [2007-10-28 06:15 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-12 10:10 UTC] tony2001@php.net
ftp_login() may return NULL only if the resource passed is no valid.
In all other cases it returns FALSE.
 [2007-11-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Apr 02 09:01:22 2020 UTC