Bug #78708 [NEW]: ftp_login doesn't work with colon (:) in password
| From: | julien dot chavee at gmail dot com | Date: | Mon, 21 Oct 2019 09:16:41 +0000 |
| Subject: | Bug #78708 [NEW]: ftp_login doesn't work with colon (:) in password | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-223327@lists.php.net to get a copy of this message | ||
From: julien dot chavee at gmail dot com
Operating system: CentOS
PHP version: 7.3.10
Package: FTP related
Bug Type: Bug
Bug description:ftp_login doesn't work with colon (:) in password
Description:
------------
The PHP function ftp_login() return false with the following warning
when the password contains the character colon (:):
"PHP Warning: ftp_login(): 500"
Test script:
---------------
<?php
$connection = ftp_connect(
'[SERVER]',
'[PORT]',
'[TIMEOUT]'
);
if($connection !== false) {
$login = ftp_login(
$connection,
'[USERNAME]',
'abc:def'
);
if($login === true) {
echo 'Success';
} else {
echo 'Failed';
}
Expected result:
----------------
Display 'Success'
Actual result:
--------------
Display 'Failed' with the warning "PHP Warning: ftp_login(): 500"
--
Edit bug report at https://bugs.php.net/bug.php?id=78708&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78708&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78708&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78708&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78708&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78708&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78708&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78708&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78708&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78708&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78708&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78708&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78708&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78708&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78708&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78708&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78708&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78708&r=mysqlcfg