Page 1 of 1

OpenSSL both enabled and disabled at the same time!

Posted: Tue May 27, 2003 11:28 pm
by wad
When I do a phpinfo() I am told this:

OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.6g 9 Aug 2002

I attempt to open an SSL socket connection to my custom-made server with this command:

$this->m_socket = fsockopen('ssl://'.$sIp, $iPort, $iErrornumber, $sError, SOCKET_CONNECT_TIMEOUT);

I receive failure, with this message:

Warning: fsockopen(): no SSL support in this build in [points to that line]

So, is OpenSSL enabled or not? What could be wrong?

Win2000 Pro, PHP 4.3.1 under Apache 2.0.45. I compiled Apache2 on this box, with OpenSSL source version 0.9.7b, using MSVS.NET (v7).

Posted: Wed May 28, 2003 2:49 pm
by wad
Oh, it does the same thing whether or not Apache2 is installed from the distributed binaries, or compiled by myself.

Any takers out there?

Posted: Fri May 30, 2003 3:44 pm
by wad
Okay, after wasting many many hours on this problem, a kind soul gave me a hint: It's a known bug in PHP.

Doh!

Here's the link:

http://bugs.php.net/bug.php?id=20014

Apparently, it won't be fixed until PHP5, right around the time that the sun has turned into a lump of frozen coal the size of a walnut.