ID: 38982 Comment by: peter dot arien at cc dot kuleuven dot be Reported By: admin at denic-294 dot de Status: No Feedback Bug Type: OpenSSL related Operating System: Debian different releases PHP Version: 4.4.4 New Comment:
Same problem with PHP 4.4.6 config: ./configure \ --with-config-file-path=/usr/local/etc \ --disable-safe-mode \ --enable-track-vars \ --enable-ftp \ --disable-debug \ --with-mysql=/usr/local/mysql50 \ --with-dom \ --with-gdbm \ --with-zlib \ --with-iconv=/usr/local \ --with-snmp \ --with-gd \ --with-curl \ --with-openssl \ --enable-xslt \ --with-xslt-sablot \ --with-freetype-dir=/usr \ --with-mcrypt \ --with-oracle=/oracle/product/8.1.7 \ --with-ldap # ldd /usr/local/bin/php|grep ssl libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 (0x4d34e000) # php -i|grep -i ssl Configure Command => './configure' '--with-config-file-path=/usr/local/etc' '--disable-safe-mode' '--enable-track-vars' '--enable-ftp' '--disable-debug' '--with-mysql=/usr/local/mysql50' '--with-gdbm' '--with-iconv=/usr/local' '--with-dom' '--with-zlib' '--with-snmp' '--with-gd' '--with-curl' '--enable-xslt' '--with-xslt-sablot' '--with-openssl' '--with-freetype-dir=/usr' '--with-mcrypt' '--with-oracle=/oracle/product/8.1.7' '--with-ldap' CURL Information => libcurl/7.13.2 OpenSSL/0.9.7e zlib/1.2.3 libidn/0.5.13 openssl OpenSSL support => enabled OpenSSL Version => OpenSSL 0.9.7e 25 Oct 2004 Testscript: test.php <?php $fp = fsockopen("ssl://www.entropy.ch", 443, $errno, $errstr, 10); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { $out = "GET /home/ HTTP/1.1\r\n"; $out .= "Host: www.entropy.ch\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); while (!feof($fp)) { echo fgets($fp, 128); } fclose($fp); } ?> Result: # php test.php Warning: fsockopen(): no SSL support in this build in /tmp/test.php on line 3 Warning: fsockopen(): unable to connect to www.entropy.ch:443 in /tmp/test.php on line 3 Success (0)<br /> This test-script does work with the apache-module version of PHP on the same server with the same (except for the specific CLI config entries) config. Previous Comments: ------------------------------------------------------------------------ [2007-02-23 15:29:02] xawiers at gmail dot com System => FreeBSD 6.1-RELEASE-p12 Build Date => Feb 23 2007 17:11:29 Configure Command => './configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disa ble-all' '--program-prefix=' '--enable-force-cgi-redirect' '--enable-discard-path' '--enable-fastcgi' '--with-regex=php' '--with-openssl=/usr/local' '--with-o penssl-dir=/usr/local' '--with-zlib=/usr' '--enable-zend-multibyte' '--disable-ipv6' '--prefix=/usr/local' Server API => Command Line Interface Registered PHP Streams => php, http, ftp, https, ftps, compress.zlib [PHP Modules] openssl standard zlib WHERE IS SSL TLS stream ??? ------------------------------------------------------------------------ [2007-02-15 04:00:27] mi7892 at hotmail dot com I got the same problem too, i compile php-4.4.4 with following command: ./configure --prefix=/usr/local/php4 --with-config-file-path=/usr/local/php4 --with-mysql=/usr/local/mysql --with-openssl=/usr/local/ssl --with-apxs2=/usr/local/apache2/bin/apxs --disable-all and run the following php in cli. <?php $a = file_get_contents('https://www.interwetten.com'); ?> I got the following result: [EMAIL PROTECTED] bin]# ./php ~/a.php Warning: file_get_contents(): php_stream_sock_ssl_activate_with_method: failed to create an SSL context in /root/a.php on line 3 Warning: file_get_contents(https://www.interwetten.com): failed to open stream: Unable to activate SSL mode in /root/a.php on line 3 here is the result from php -m [EMAIL PROTECTED] bin]# ./php -m [PHP Modules] mysql openssl standard [Zend Modules] ------------------------------------------------------------------------ [2006-10-06 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2006-09-28 15:28:02] [EMAIL PROTECTED] Please try to configure it with just ./configure --disable-all --with-openssl. ------------------------------------------------------------------------ [2006-09-28 15:10:04] [EMAIL PROTECTED] Does php -m show the ssl extension as being loaded? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/38982 -- Edit this bug report at http://bugs.php.net/?id=38982&edit=1