From: fidojones at fidojones dot com
Operating system: linux
PHP version: 4.4.4
PHP Bug Type: OpenSSL related
Bug description: OpenSSL init corrected in php5 but not in php4
Description:
------------
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.
SSL_library_init();
Description:
------------
Patch to fix
Index: ext/openssl/openssl.c
===================================================================
RCS file: /repository/php-src/ext/openssl/openssl.c,v
retrieving revision 1.98.2.1
diff -p -u -r1.98.2.1 openssl.c
--- ext/openssl/openssl.c 18 Aug 2005 13:34:37 -0000
1.98.2.1
+++ 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();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests();
OpenSSL_add_all_algorithms();
--
Edit bug report at http://bugs.php.net/?id=38798&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=38798&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=38798&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=38798&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38798&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=38798&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38798&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38798&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38798&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38798&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38798&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=38798&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=38798&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38798&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38798&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38798&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38798&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38798&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38798&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38798&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38798&r=mysqlcfg