#34611 [Fbk->Opn]: fsockopen claims to have no SSL-support

From: Date: Fri, 23 Sep 2005 11:29:50 +0000
Subject: #34611 [Fbk->Opn]: fsockopen claims to have no SSL-support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85487@lists.php.net to get a copy of this message
ID: 34611 User updated by: werner at usit dot uio dot no Reported By: werner at usit dot uio dot no -Status: Feedback +Status: Open Bug Type: OpenSSL related Operating System: Solaris PHP Version: 4.4.0 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2005-09-23 13:13:54] derick@php.net 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

« previous php.bugs (#85487) next »