ID:               26612
 User updated by:  zefram at zefram dot net
 Reported By:      zefram at zefram dot net
 Status:           Open
 Bug Type:         OpenSSL related
 Operating System: FreeBSD 4.9 STABLE
 PHP Version:      4.3.4
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2003-12-13 15:30:50] 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 15:12:52] 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 13:51:49] [EMAIL PROTECTED]

--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 03:12:46] 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  



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26612&edit=1

Reply via email to