#35072 [NEW]: ssl init error
| From: | bill dot finn at sellingsource dot com | Date: | Wed, 02 Nov 2005 21:10:53 +0000 |
| Subject: | #35072 [NEW]: ssl init error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-87436@lists.php.net to get a copy of this message | ||
From: bill dot finn at sellingsource dot com
Operating system: Gentoo 2.6.9
PHP version: 5.0.5
PHP Bug Type: Network related
Bug description: ssl init error
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 bug report at http://bugs.php.net/?id=35072&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35072&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35072&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35072&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35072&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35072&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35072&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35072&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35072&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35072&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35072&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35072&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35072&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35072&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35072&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35072&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35072&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35072&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35072&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35072&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35072&r=mysqlcfg