|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38798 OpenSSL init corrected in php5 but not in php4
Submitted: 2006-09-12 20:15 UTC Modified: 2007-05-08 18:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: fidojones at fidojones dot com Assigned: derick (profile)
Status: Closed Package: OpenSSL related
PHP Version: 4.4.4 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: fidojones at fidojones dot com
New email:
PHP Version: OS:


 [2006-09-12 20:15 UTC] fidojones at fidojones dot com
This bug is corrected in php5, but it's not introduced in php4 an fails exactly as php5. In php 4.4.4 it's not yet.


Patch to fix

Index: ext/openssl/openssl.c
RCS file: /repository/php-src/ext/openssl/openssl.c,v
retrieving revision
diff -p -u -r1.98.2.1 openssl.c
--- ext/openssl/openssl.c       18 Aug 2005 13:34:37 -0000
+++ ext/openssl/openssl.c       25 Nov 2005 03:03:47 -0000
@@ -584,6 +584,7 @@ PHP_MINIT_FUNCTION(openssl)
        le_x509 = zend_register_list_destructors_ex(php_x509_free, NULL,
"OpenSSL X.509", module_number);
        le_csr = zend_register_list_destructors_ex(php_csr_free, NULL,
"OpenSSL X.509 CSR", module_number);

+       SSL_library_init();


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-15 12:40 UTC]
It is up to the 4.4 RM to decide.
 [2007-05-08 18:00 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon May 10 06:01:24 2021 UTC