ID: 44353
Updated by: [EMAIL PROTECTED]
Reported By: jmatthies at townleyandassociates dot com
-Status: Open
+Status: Feedback
Bug Type: CGI related
Operating System: hp/ux 11.11
PHP Version: 5.2.5
New Comment:
Works fine for me. Try running the CLI binary without loading any
php.ini:
# php -n test.php
Previous Comments:
------------------------------------------------------------------------
[2008-03-06 18:03:56] jmatthies at townleyandassociates dot com
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 this bug report at http://bugs.php.net/?id=44353&edit=1