php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: zefram at zefram dot net
New email:
PHP Version: OS:

 

 [2003-12-13 03:12 UTC] zefram at zefram dot net
Description:
------------
I'm trying to use (not really php.net, but..) 
fsockopen("ssl://www.php.net",443);  
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  
--with-openssl-dir=/usr/include/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)  
yes  
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,  
  
John  


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-13 13:51 UTC] pollita@php.net
--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? 
 
John
 [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 
thus: 
 
openssl 
 
OpenSSL support  
enabled  
 
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. 
 
John
 [2003-12-14 20:25 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC