ID:               34611
 Updated by:       [EMAIL PROTECTED]
 Reported By:      werner at usit dot uio dot no
 Status:           Bogus
 Bug Type:         OpenSSL related
 Operating System: Solaris
 PHP Version:      4.4.0
 New Comment:

You need to build the openssl extension statically into PHP for this to
work.
It sounds to me like it didn't find it on your system; check the
config.log to make sure.


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

[2005-09-23 14:06:32] werner at usit dot uio dot no

There is no firewall in between. If I use the php-binary, I get this
errors/output:

Warning: fsockopen(): no SSL support in this build in
/usit/saruman/gap-u1/werner/www_docs/test.php on line 4

Warning: fsockopen(): unable to connect to webmail.uio.no:443 in
/usit/saruman/gap-u1/werner/www_docs/test.php on line 4
Error 0 (0)<br/>
Kopla til webmail.uio.no.<br>

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

[2005-09-23 14:01:50] [EMAIL PROTECTED]

Check the firewall in between, works fine for me.


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

[2005-09-23 13:29:48] werner at usit dot uio dot no

CFLAGS='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' \
CPPFLAGS='-I/site/www/httpd/share/libjpeg/include
-I/site/www/httpd/share/zlib/include' \
LDFLAGS='-L/site/www/httpd/share/libjpeg/lib
-R/site/www/httpd/share/libjpeg/lib -L/site/www/httpd/share/libpng/lib
-R/site/www/httpd/share/libpng/lib -L/site/www/httpd/share/zlib/lib
-R/site/www/httpd/share/zlib/lib' \
CC='cc' CCC='CC' ./configure \
--with-apxs=/site/www/httpd/b_022/sbin/apxs \
--prefix=/site/www/httpd/b_022 \
--enable-calendar \
--enable-inline-optimization \
--enable-magic-quotes \
--enable-mbstring=all \
--enable-mbstr-enc-trans \
--enable-mbregex \
--enable-memory-limit \
--enable-safe-mode \
--enable-sigchild \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-track-vars \
--enable-trans-sid \
--with-config-file-path=/site/www/httpd/conf \
--with-exec-dir=/site/www/httpd/b_022/php-bin \
--with-gettext=/local \
--with-iconv=/local \
--with-jpeg-dir=/site/www/httpd/share/libjpeg \
--with-png-dir=/site/www/httpd/share/libpng \
--with-ldap=/site/ldap \
--with-mysql=/site/mysql/current \
--with-pgsql=/site/postgresql/7.3.1 \
--with-oci8=/local/opt/oraclient/product/8.1.7 \
--with-gd \
--with-openssl=/site \
--with-zlib=/site/www/httpd/share/zlib \
--with-zlib-dir=/site/www/httpd/share/zlib \
--disable-debug \
--disable-short-tags \
--disable-yp

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

[2005-09-23 13:13:54] [EMAIL PROTECTED]

What is your configure line?

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

[2005-09-23 12:55:24] werner at usit dot uio dot no

Description:
------------
fsockopen claims that it does not have SSL-support when using it on an
ssl:/-URL. phpinfo() says that OpenSSL is enabled, the
OpenSSL-functions openssl_pkey_new and openssl_csr_new works, and with
the exact same setup of Apache/PHP on Linux, this works great.

Reproduce code:
---------------
<?php
function callSock($adr, $port) {
  $fp = fsockopen($adr, $port, $errno, $errstr);
  if (!$fp) {
    echo "$errstr ($errno)<br/>\n";
    echo $fp;
  } else {
    echo "Kopla til $adr.<br>";
    fclose($fp);
  }
}
callSock("ssl://webmail.uio.no", 443);
callSock("webmail.uio.no", 80);
?>


Expected result:
----------------
Kopla til ssl://webmail.uio.no.
Kopla til webmail.uio.no.

Actual result:
--------------
Error 0 (0)
Kopla til webmail.uio.no.


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


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

Reply via email to