#20014 [Opn]: SSL w/ fsockopen not working

From: Date: Wed, 05 Feb 2003 07:07:14 +0000
Subject: #20014 [Opn]: SSL w/ fsockopen not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32165@lists.php.net to get a copy of this message
ID: 20014 Updated by: k.schroeder@php.net Reported By: dietrich.ayala@foundstone.com Status: Open Bug Type: Sockets related Operating System: windows 2000 -PHP Version: 4CVS-2002-10-21 +PHP Version: 4CVS-2003-02-05 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2002-10-21 15:24:24] wez@php.net Looks like main/config.w32.h.in needs to #define HAVE_OPENSSL_EXT 1 I'm unable to test this ATM, so I'm hoping that some other kind win32 developer can look into it. ------------------------------------------------------------------------ [2002-10-21 15:17:27] dietrich.ayala@foundstone.com Environment: W2K/IIS5/php 4.3.0-dev (win32 snapshot 10/21, 7:25), CGI Reproduce w/: $fp = fsockopen('ssl://secure.hostname.here',$port); Error: "Warning: fsockopen() [function.fsockopen]: no SSL support in this build in E:\test\fsockopen_ssl.php" phpinfo() shows OpenSSL is available. I tested the openssl funcs to confirm availability. All DLLs are copied to system32 dir. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20014&edit=1

« previous php.bugs (#32165) next »