|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35668 failed to create an SSL context / Stream (works with PHP 5.1)
Submitted: 2005-12-14 17:13 UTC Modified: 2006-08-15 19:58 UTC
Avg. Score:4.3 ± 0.9
Reproduced:9 of 9 (100.0%)
Same Version:7 (77.8%)
Same OS:7 (77.8%)
From: clemens at gutweiler dot net Assigned: wez (profile)
Status: Wont fix Package: OpenSSL related
PHP Version: 4CVS-2005-12-14 (snap) OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-12-14 17:13 UTC] clemens at gutweiler dot net
unable to use https connections via stream

Reproduce code:
    echo file_get_contents( '' );

OpenSSL support  enabled  
OpenSSL Version  OpenSSL 0.9.8a 11 Oct 2005  
Registered PHP Streams  php, http, ftp, https, ftps, compress.zlib  

Fails with PHP 4.4.1, 5.1.1 and CVS PHP_4_4.

Actual result:
Warning: file_get_contents(): php_stream_sock_ssl_activate_with_method: failed to create an SSL context 

Warning: file_get_contents( failed to open stream: Unable to activate SSL mode 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-14 17:42 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-12-14 17:44 UTC]
Also, if you're using Debian, this is bogus. There's a problem with Debian's OpenSSL 0.9.8a packages.
 [2005-12-14 18:13 UTC] clemens at gutweiler dot net
With the latest 5.1 Snap (5.1-200512141530) this works great.
I use debian, but a self-compiled openssl-0.9.8a and not the distribution package.

Is there a chance to get this fixed in the 4_4 branch too?
 [2006-08-14 17:41 UTC]
Do you use debian? or can you reproduce this problem with a recent php version (5.1 or 5.2, 4.x will not get fixed)?
 [2006-08-15 07:14 UTC] clemens at gutweiler dot net
5.x works, 4.4.x not.

this is a debian distribution, but openssl is build from the 
official sources, i do not use the openssl deb-package.
 [2006-08-15 19:58 UTC]
Please upgrade. PHP 4.x is only for security fixes.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 19:01:31 2024 UTC