Bug #52106 [Com]: fopen fails on some SSL urls

From: Date: Thu, 02 Dec 2010 06:44:18 +0000
Subject: Bug #52106 [Com]: fopen fails on some SSL urls
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156676@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52106&edit=1

 ID:                 52106
 Comment by:         clint at ubuntu dot com
 Reported by:        sc0ttbeardsley at gmail dot com
 Summary:            fopen fails on some SSL urls
 Status:             Open
 Type:               Bug
 Package:            OpenSSL related
 Operating System:   Ubuntu Lucid/Maverick
 PHP Version:        5.3.2
 Block user comment: N
 Private report:     N

 New Comment:

I think this issue is actually on the server side, and may be superceded
by this 
bug request I just filed:

http://bugs.php.net/bug.php?id=53447


Previous Comments:
------------------------------------------------------------------------
[2010-10-19 22:45:12] website-php at interfasys dot ch

Same problem on FreeBSD 8.1 with PHP 5.2.14 and OpenSSL 1.0.
Impossible to connect to a website using SSL.
Immediate Timeout, error 0.
Tried both fopen and fsockopen.

------------------------------------------------------------------------
[2010-10-13 18:41:27] jeremy dot postlethwaite at gmail dot com

I am also having trouble with stream_socket_client and
Zend_Auth_Adapter_Cas

http://framework.zend.com/wiki/display/ZFPROP/Zend_Auth_Adapter_Cas+-+Jeremy+Postlethwaite

I am using CentOS 5.5, zend-server-ce-php-5.3 and PHP 5.3.3.

Here is my error:

Unable to Connect to ssl://cas.ucdavis.edu:443. Error #0: 

The problem did not arise until I upgraded to PHP 5.3.3

------------------------------------------------------------------------
[2010-10-04 13:57:50] shinoj at hotmail dot com

Hi,

I could not reproduce this bug on RHEL5 64 bit (kernel 2.6.18-164.el5)
with php-5.1.6-23.2.el5_3 which is the redhat default

and centos5 64 bit (kernel 2.6.18-194.3.1.el5) with php-5.3.2-2

Regards,
Shinoj.

------------------------------------------------------------------------
[2010-09-28 10:40:39] ns at centralservices dot nl

A note on my previous post. Downgrading to PHP 5.2.10 within Ubuntu
10.04.1 LTS does resolve the problem. So the bug clearly resides in the
PHP codebase.

------------------------------------------------------------------------
[2010-09-20 16:39:02] ns at centralservices dot nl

I'm having a similar problem.

The URL I'm trying to open:
https://login.twinfield.com/webservices/session.asmx?wsdl

Environment in which it's working perfectly: Ubuntu 9.10 (php 5.2.10).

Environment in which it's not working: Ubuntu 10.04.1 (php 5.3.2).
The specific errors I get when trying to connect to the url:

PHP Warning:  fopen(): SSL operation failed with code 1. OpenSSL Error
messages:
error:14092073:SSL routines:func(146):reason(115) in
/share/ac/staging/test_twf_ubuntu10lts.php on line 26
PHP Warning:  fopen(): Failed to enable crypto in
/share/ac/staging/test_twf_ubuntu10lts.php on line 26
PHP Warning: 
fopen(https://login.twinfield.com/webservices/session.asmx?wsdl): failed
to open stream: operation failed in
/share/ac/staging/test_twf_ubuntu10lts.php on line 26

This means that I cannot connect to a very important SSL webservice
through SoapClient so I cannot upgrade to Ubuntu 10 lts, which I really
need to because of another, new, crucial package our project will depend
on.

I guess that the failing SOAP call is related to the above, but just to
be sure, I'm getting the following error when trying to create a
SoapClient with the above WSDL url (note that a commandline wget of the
url works just fine):

PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from
'https://login.twinfield.com/webservices/session.asmx?wsdl'
: failed to
load external entity
"https://login.twinfield.com/webservices/session.asmx?wsdl"
 in /share/staging/test_twf_ubuntu10lts.php on line 30
SOAP-ERROR: Parsing WSDL: Couldn't load from
'https://login.twinfield.com/webservices/session.asmx?wsdl'
: failed to
load external entity
"https://login.twinfield.com/webservices/session.asmx?wsdl"

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


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/bug.php?id=52106


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52106&edit=1


Thread (17 messages)

« previous php.bugs (#156676) next »