Skip to content

macOS 26 beta php-fpm crash by use curl #19016

Open
@ixqbar

Description

@ixqbar

Description

The following code:

<?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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions