ID:               44353
 Comment by:       seklecki at noc dot cfi dot pgh dot pa dot us
 Reported By:      jmatthies at townleyandassociates dot com
 Status:           No Feedback
 Bug Type:         CGI related
 Operating System: hp/ux 11.11
 PHP Version:      5.2.5
 New Comment:

We're seeing this problem too:

- FreeBSD/amd64 6.3-P10
- php5-5.2.9
-  OpenSSL 0.9.7e-p1 25 Oct 2004


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

[2008-03-25 01:00:00] 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".

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

[2008-03-17 20:56:46] j...@php.net

And you're 100% sure that the installed CLI binary and Apache module
are from same build? (check the installed modules in both!)

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

[2008-03-14 20:32:48] jmatthies at townleyandassociates dot com

p -n <file> gives identical results:

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 st ream: No such file or directory in
/opt/hpws/apache/htdocs/t.php on line 2

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

[2008-03-13 12:18:28] j...@php.net

Works fine for me. Try running the CLI binary without loading any
php.ini:

# php -n test.php


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

[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

Reply via email to