#35072 [Opn->Fbk]: ftps:// fopen wrapper: FTP server reports 501 wrong number of parameters
| From: | iliaa@php.net | Date: | Tue, 22 Nov 2005 23:41:18 +0000 |
| Subject: | #35072 [Opn->Fbk]: ftps:// fopen wrapper: FTP server reports 501 wrong number of parameters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-88743@lists.php.net to get a copy of this message | ||
ID: 35072
Updated by: iliaa@php.net
Reported By: bill dot finn at sellingsource dot com
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: *
PHP Version: 5CVS-2005-11-03 (snap)
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-11-02 23:20:02] bill dot finn at sellingsource dot com
Done.
PHP Warning: file(ftps://...myinfo...): failed to open stream: FTP
server reports 501 wrong number of parameters
in /home/wfinn/test/ftps.php on line 21
Warning: file(ftps://...myinfo...): failed to open stream: FTP server
reports 501 wrong number of parameters
in /home/wfinn/test/ftps.php on line 21
------------------------------------------------------------------------
[2005-11-02 22:30:30] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-11-02 22:10:52] bill dot finn at sellingsource dot com
Description:
------------
using ftps in some filesystem functions produces ssl error and fails.
Same effect if only using file() without file_exists before it.
Reproduce code:
---------------
echo
file_exists("ftps://{$user}:{$pass}@{$host}:{$port}/{$path}{$file}")
$contents =
file("ftps://{$user}:{$pass}@{$host}:{$port}/{$path}{$file}")
Expected result:
----------------
$contents should get the contents of the file I'm requesting from the
server.
Actual result:
--------------
PHP Warning: file(): SSL/TLS already set-up for this stream in
/home/wfinn/test/ftps.php on line 21
Warning: file(): SSL/TLS already set-up for this stream in
/home/wfinn/test/ftps.php on line 21
PHP Warning: file(ftps://...myinfo...): failed to open stream: Unable
to activate SSL mode
FTP server reports 150 Opening BINARY data connection for
/s-fastcash/343923324-20051019.ddl (1084 bytes)
in /home/wfinn/test/ftps.php on line 21
Warning: file(ftps://...myinfo...): failed to open stream: Unable to
activate SSL mode
FTP server reports 150 Opening BINARY data connection for
/s-fastcash/343923324-20051019.ddl (1084 bytes)
in /home/wfinn/test/ftps.php on line 21
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35072&edit=1