[php-src] Issue #19016: macOS 26 beta php-fpm crash by use curl
| From: | ixqbar | Date: | Thu, 03 Jul 2025 10:07:05 +0000 |
| Subject: | [php-src] Issue #19016: macOS 26 beta php-fpm crash by use curl | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250368@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/19016
Author: ixqbar
### Description
The following code:
```php
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'https://httpbin.org/get',
]);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
```
* must run it under php-fpm use a http reuqest
Resulted in this output:
```
502 Bad Gateway
kevent() reported about an closed connection (54: Connection reset by peer) while reading response
header from upstrea
```
### PHP Version
```plain
PHP 8.2.28 (cli) (built: Mar 11 2025 17:58:12) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.28, Copyright (c) Zend Technologies
with Xdebug v3.4.4, Copyright (c) 2002-2025, by Derick Rethans
with Zend OPcache v8.2.28, Copyright (c), by Zend Technologies
```
### Operating System
macOS 26 beta