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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 21:01:29 2024 UTC