OpenSSL both enabled and disabled at the same time!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wad
Forum Newbie
Posts: 8
Joined: Wed May 14, 2003 10:26 am
Location: Tucson, AZ
Contact:

OpenSSL both enabled and disabled at the same time!

Post 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).
wad
Forum Newbie
Posts: 8
Joined: Wed May 14, 2003 10:26 am
Location: Tucson, AZ
Contact:

Post 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?
wad
Forum Newbie
Posts: 8
Joined: Wed May 14, 2003 10:26 am
Location: Tucson, AZ
Contact:

Post 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.
Post Reply