From: jmatthies at townleyandassociates dot com Operating system: hp/ux 11.11 PHP version: 5.2.5 PHP Bug Type: CGI related Bug description: https loads in apache, fails on cli. http fine
Description: ------------ simple php file: <?echo file_get_contents('https://www.google.co.uk/ig?hl=en'); ?> works fine when loaded in apache 2.0.58. When i run it via the cli, I get: Warning: file_get_contents(): SSL: No such file or directory in <file> Warning: file_get_contents(): Failed to enable crypto in <file> If I change it to http://, it works in apache and the cli Configure Command => './configure' '--prefix=/opt/hpws/apache/php' '--enable-soap' '--with-libxml-dir=/usr/local' '--with-openssl=/usr/local' '--with-openssl-dir=/usr/local' '--enable-ipv6' '--with-apxs2=/opt/hpws/apache/bin/apxs' '--with -unixODBC=shared,/opt/unixODBC' php -m shows the openssl module loaded. php -i shows similar output to phpinfo() through apache in regards to openssl info. Reproduce code: --------------- <?echo file_get_contents('https://www.google.co.uk/ig?hl=en'); ?> Expected result: ---------------- load the web page in question Actual result: -------------- Warning: file_get_contents(): SSL: No such file or directory in /opt/hpws/apache /htdocs/t.php on line 2 Warning: file_get_contents(): Failed to enable crypto in /opt/hpws/apache/htdocs /t.php on line 2 Warning: file_get_contents(https://www.google.co.uk/ig?hl=en): failed to open stream: Invalid argument in /opt/hpws/apache/htdocs/t.php on line 2 -- Edit bug report at http://bugs.php.net/?id=44353&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44353&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44353&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44353&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44353&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44353&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44353&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44353&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44353&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44353&r=support Expected behavior: http://bugs.php.net/fix.php?id=44353&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44353&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44353&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44353&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44353&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44353&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44353&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44353&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44353&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44353&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44353&r=mysqlcfg