#20014 [WFx]: SSL w/ fsockopen not working
| From: | edink@php.net | Date: | Tue, 04 Mar 2003 23:03:20 +0000 |
| Subject: | #20014 [WFx]: SSL w/ fsockopen not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-34806@lists.php.net to get a copy of this message | ||
ID: 20014
Updated by: edink@php.net
Reported By: dietrich dot ayala at foundstone dot com
Status: Wont fix
Bug Type: Sockets related
Operating System: windows 2000
PHP Version: 4CVS-2003-02-05
Assigned To: edink
New Comment:
It was me who built that binary. I'll try to keep that site updated
with the new versions of 4.3.x branch. I will also write instructions
on how you can do this yourself and post it on that url.
Previous Comments:
------------------------------------------------------------------------
[2003-03-04 11:44:37] dietrich dot ayala at foundstone dot com
so no fix at all for 4.3.x?
ouch, that leaves a bunch of us in the cold for probably more than a
year.
any pointers on solving this manually?
manuzhai@php.net posted a custom dll here:
http://ftp.proventum.net/pub/php/win32/misc/openssl/
but he hasn't answered my emails regarding how i would do this myself,
or if he's going to update for further 4.3.x releases :(
any info would be helpful, thanks!
------------------------------------------------------------------------
[2003-03-04 07:41:33] edink@php.net
A new infrastructure for dealing with this issue is being implemented
in php5. It will therefore not be fixed by bundling openssl in the php4
build. Could even be illegal in some countries.
------------------------------------------------------------------------
[2003-02-13 09:43:37] m dot fedor at espritsro dot sk
I changed main/config.w32.h and #define HAVE_OPENSSL_EXT 1 was added
there (suggestion from wez@php.net). I compiled latest PHP sources
under Win2000 using Visual Studio 6.0 , CygWin, OpenSSL libraries, ....
Unfortunately there is still bug with fsockopen() function: no SSL
support in this build. Are there any other suggestion to solve this
problem?
------------------------------------------------------------------------
[2003-02-05 16:14:13] sniper@php.net
The 'OpenSSL support => enabled' is a bit misleading
since it just means that the openssl _extension_ is available. But the
main PHP is not linked with the ssl
libs (win32 binaries provided by php.net) so of course
the SSL support is not available...Edin is looking into
this so assigning to him.
------------------------------------------------------------------------
[2003-02-05 01:07:13] k.schroeder@php.net
This is reproducable with latest php4-win32 snap, latest php4 source
snap works on Linux:
Relevant parts from phpinfo():
Registered PHP Streams => php, http, ftp, compress.zlib
OpenSSL support => enabled
OpenSSL Version => OpenSSL 0.9.6g 9 Aug 2002
test:
--TEST--
Bug #20014 SSL w/ fsockopen not working
--SKIPIF--
<?php
include('skipif.inc');
?>
--FILE--
<?php
var_dump(fsockopen('ssl://www.openssl.org', 443));
?>
--EXPECT--
resource(4) of type (stream)
---- EXPECTED OUTPUT
resource(4) of type (stream)
---- ACTUAL OUTPUT
Warning: fsockopen() [/phpmanual/function.fsockopen.html]: no SSL
support in this build in D:\work\php4\ext\openssl\tests\bug20014.php on
line 2
Warning: fsockopen() [/phpmanual/function.fsockopen.html]: unable to
connect to www.openssl.org:443 in
D:\work\php4\ext\openssl\tests\bug20014.php on line 2
bool(false)
---- FAILED
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20014
--
Edit this bug report at http://bugs.php.net/?id=20014&edit=1