|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26612 ssl stream not available
Submitted: 2003-12-13 03:12 UTC Modified: 2003-12-14 20:39 UTC
From: zefram at zefram dot net Assigned:
Status: Closed Package: OpenSSL related
PHP Version: 4.3.4 OS: FreeBSD 4.9 STABLE
Private report: No CVE-ID: None
 [2003-12-13 03:12 UTC] zefram at zefram dot net
I'm trying to use (not really, but..) 
however, I'm getting an error that "no SSL support in this  
build", which in fact it's not according to phpinfo(). I  
only have the following streams: php, http, ftp,  
compress.zlib. I'm supplying the following configure  
options, and I stop/start apache after upgrading php, but  
it's no go.   
./configure --with-apache=../apache_1.3.29/ --with-mysql  
--with-gd --enable-sockets --with-png-dir=/usr/include/ 
libpng --with-zlib-dir=/usr/include --with-jpeg-dir=/usr/ 
include/libjpeg --with-mhash --with-openssl  
When I grep for SSL, I get:  
checking for OpenSSL support... yes  
checking for OpenSSL version... >= 0.9.6  
checking for SSL_CTX_set_ssl_version in -lssl... (cached)  
checking OpenSSL dir for MCVE... /usr/include/openssl  
checking OpenSSL dir for SNMP... /usr/include/openssl  
The OpenSSL code does appear to compile in ext/openssl/.  
I'm not sure what other information I can provide. Thanks  
for any assistance,  


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-13 13:51 UTC]
--with-apache compiles PHP into apache statically (which means that Apache must also be recompiled/installed whenever PHP is recompiled/installed).  Making a guess from your comment "I stop/start apache after upgrading" I'm not certain you're doing that.  Are you?

phpinfo() should give a "Build Date" for which the currently running PHP was compiled.  Double check that to make sure you're running the version you think you are.

 [2003-12-13 15:12 UTC] zefram at zefram dot net
I made sure to check the build date in the phpinfo(), and 
sure enough it was correct. I couldn't believe it was 
happening. I do recompile Apache after I make install php. 
I also watched the Apache build, and it supplied -lssl 
when compiling php. I even installed mod_ssl thinking that 
would help.. but no go. I'm going to look into ports to 
see if they're doing some special magic, or it is indeed 
broken there also. 
I get no compile errors, save for some mktemp warnings. Is 
there a way to list the compiled options in libphp4.a? 
 [2003-12-13 15:30 UTC] zefram at zefram dot net
I'd also like to note that I do see OpenSSL support listed 
in phpinfo. I don't see the same thing on another machine 
with OpenSSL installed but not in PHP. It's listed as 
OpenSSL support  
OpenSSL Version  
OpenSSL 0.9.7c 30 Sep 2003
 [2003-12-13 16:25 UTC] zefram at zefram dot net
I seem to have fixed the problem.  
HAVE_OPENSSL_EXT was being defined in main/php_config.h, 
which is fine.. but it didn't seem to be getting to other 
files such as ext/standard/fsock.c. I included this file 
in php.h, and everything compiled fine and my registered 
streams are now: 
php, http, ftp, https, ftps, compress.zlib 
I'd like to keep this bug open, until we figure out why 
it's not working on FreeBSD, or at least in my case, if 
that is amicable. 
 [2003-12-14 20:25 UTC]
Please try using this CVS snapshot:
For Windows:

I think this was fixed already..

 [2003-12-14 20:39 UTC] zefram at zefram dot net
That does indeed fix the problem. Thank you!!
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Oct 02 02:01:25 2023 UTC