Bug #79589 [PATCH]: error:14095126:SSL routines:ssl3_read_n:unexpected eof while reading

From: Date: Tue, 29 Mar 2022 11:55:04 +0000
Subject: Bug #79589 [PATCH]: error:14095126:SSL routines:ssl3_read_n:unexpected eof while reading
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240554@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79589&edit=1 ID: 79589 Patch added by: arekm@maven.pl Reported by: mumu at seznam dot cz Summary: error:14095126:SSL routines:ssl3_read_n:unexpected eof while reading Status: Re-Opened Type: Bug Package: OpenSSL related PHP Version: 7.4.5 Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: openssl-ignore-eof.patch Revision: 1648554903 URL: https://bugs.php.net/patch-display.php?bug=79589&patch=openssl-ignore-eof.patch&revision=1648554903 Previous Comments: ------------------------------------------------------------------------ [2022-03-29 11:30:00] arekm at maven dot pl php master as of today: commit c9c5ee3f48a21c8911d2e1c68c4e0ca5d5f58840 (HEAD -> master, origin/master, origin/HEAD) Merge: a6d88d3b26 7e8dcda42c Author: Christoph M. Becker <cmbecker69@gmx.de> Date: Tue Mar 29 10:54:32 2022 +0200 Merge branch 'PHP-8.1' build simplest way possible ./configure --prefix=$HOME/test/php-test --with-openssl make make install with OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022) linux distro, glibc 2.35 and php-test]$ ./bin/php ~/ssl-test1.php Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000126:SSL routines::unexpected eof while reading in /home/users/arekm/ssl-test1.php on line 4 $ cat /home/users/arekm/ssl-test1.php <?php $recaptcha_url = 'https:// www. google. com/recaptcha/api/siteverify'; // remove spaces file_get_contents($recaptcha_url); ------------------------------------------------------------------------ [2020-08-16 15:50:00] bukka@php.net This will still need to be fixed for OpenSSL 3.0 so re-opening and removing OS ------------------------------------------------------------------------ [2020-07-20 13:14:35] cmb@php.net > My php version 7.4.5,OS Win10 Pro 2019 in laravel 6. > Meu php versão 7.4.5,OS Win10 sem lavável Thanks. This issue is resolved as of PHP 7.4.6. ------------------------------------------------------------------------ [2020-07-15 11:27:50] wrfrodrigues at gmail dot com Olá. Estou tendo o mesmo problema que o huzaifarasheen900 informou. linha de teste: $var = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=" . SECRET_KEY . "&response={$SecretKey}"); Resultado: Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14095126:SSL routines:ssl3_read_n:unexpected eof while reading in D:\Projetos\Paginas de Teste\ClassCaptcha.php on line 14 Meu php versão 7.4.5,OS Win10 sem lavável ------------------------------------------------------------------------ [2020-05-30 20:53:29] huzaifarasheen900 at mail dot com I Just want to add something.I did this with normal php and it worked fine but with the php laravel framework it gives me the same error. My php version 7.4.5,OS Win10 Pro 2019 in laravel 6. ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=79589 -- Edit this bug report at https://bugs.php.net/bug.php?id=79589&edit=1

« previous php.bugs (#240554) next »