[php-src] Issue #9390: (Bogus?) SSL error on ip.loltek.net

From: Date: Sun, 21 Aug 2022 06:51:15 +0000
Subject: [php-src] Issue #9390: (Bogus?) SSL error on ip.loltek.net
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-242272@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9390
Author: divinity76

### Description

The following invocation:

```php
php -r 'file_get_contents("https://ip.loltek.net");'
```

Resulted in this output (on some systems):
```
PHP Warning:  file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:0A000126:SSL routines::unexpected eof while reading in Command line code on line 1
```

But I expected this output instead:
```
(blank)
```

it seems only PHP is affected, and only some installations of PHP, and curl is unaffected even when
running the exact same OpenSSL version, thus i guess it might be a PHP bug?

Affected:
PHP 8.1.8 OpenSSL OpenSSL/1.1.1n (PS curl is unaffected with the exact same OpenSSL)
PHP 8.1.2 OpenSSL 3.0.2 15 Mar 2022 (PS curl is unaffected with the exact same OpenSSL)
PHP 7.4.? OpenSSL ?  (the same behavior has been observed on a PHP7.4.x with OpenSSL, but that
system has been trashed and the exact version numbers were not recorded)

Not affected:
PHP 7.3.7 OpenSSL/1.1.1q
Curl 7.84.0 OpenSSL/1.1.1q
Curl 7.81.0 OpenSSL/3.0.2 (PS PHP8.1.2 is affected with the same OpenSSL)
Curl 7.64.0 OpenSSL/1.1.1n (PS PHP8.1.8 is affected with the same OpenSSL)
Wget 1.21.2 OpenSSL/3.0.0
Wget 1.20.1 GnuTLS/3.6.3
Google Chrome Version 104.0.5112.81
Chromium Version 104.0.5112.101
Firefox 91.12.0esr
Firefox 102.2.0esr
Firefox 52.9.0esr
Opera 12.18 Build 1872
Internet Explorer 11.0.19041.1566

### PHP Version

PHP 8.1.8

### Operating System

Ubuntu 22.04, Ubuntu 20.04, Debian 10


Thread (1 message)

  • divinity76
« previous php.bugs (#242272) next »