ID: 39336 Updated by: [EMAIL PROTECTED] Reported By: seanius at debian dot org -Status: Open +Status: Bogus Bug Type: OpenSSL related Operating System: Debian GNU/Linux PHP Version: 4.4.4 New Comment:
Duplicate of bug #38798. Previous Comments: ------------------------------------------------------------------------ [2006-11-02 06:52:24] judas dot iscariote at gmail dot com >was particularly amusing, because in the latest php 5.x >code the patch from #38798 has already been applied, whereas >it has not >been applied yet in 4.4.4 :) This have a reason, PHP4 active development has ceased permanently . people is focused on 5.2 and 6. So, PHP4 issues gets liltle or no attention. is time for you to tell the debian people to move to PHP5 ASAP. anyway.. fix seems to be small.. wait to see if somebody is willing to look into this. However. this bug is bogus, since is a duplicated of #38798 ------------------------------------------------------------------------ [2006-11-01 18:08:00] seanius at debian dot org Description: ------------ in php4 4.4.4x and later using openssl 0.9.8a and later, ssl protocols are not available to functions like readfile() et al. this is because the list of ciphers are not properly initialized in ext/openssl/openssl.c the patch provided in php bug #38798 solves the problem correctly. note that this problem is also the cause of php bug #35160, which imho was wrongly closed. the rationale that "it must be a problem with the precompiled openssl libs, because it compiles fine with a fresh openssl and the latest 5.x php" was particularly amusing, because in the latest php 5.x code the patch from #38798 has already been applied, whereas it has not been applied yet in 4.4.4 :) Reproduce code: --------------- readfile("https://www.google.com"); Expected result: ---------------- html content Actual result: -------------- copelandia[~]18:56:21$ php4 foo.php Warning: readfile(): php_stream_sock_ssl_activate_with_method: failed to create an SSL context in /home/seanius/foo.php on line 2 Warning: readfile(https://www.google.com): failed to open stream: Unable to activate SSL mode in /home/seanius/foo.php on line 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39336&edit=1