Skip to content

FrankenPHP 1.5.0 on ARM: illegal instruction #1460

Open
@davlgd

Description

@davlgd

What happened?

If I use the following script with php-cli on 1.5.0 (Linux, ARM) release, I get an Illegal instruction. Everything is fine with 1.4.4 release:

<?php
if (!extension_loaded('curl')) {
    die('L\'extension cURL n\'est pas installée');
}

$ch = curl_init();
$url = 'https://httpbin.org/get';

curl_setopt_array($ch, [
    CURLOPT_URL => $url,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_SSL_VERIFYPEER => true,
    CURLOPT_TIMEOUT => 30
]);

$response = curl_exec($ch);

if (curl_errno($ch)) {
    echo 'Erreur cURL : ' . curl_error($ch);
} else {
    $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
    echo "Code HTTP : $httpCode\n";

    echo "Réponse :\n";
    echo $response;
}

curl_close($ch);

Build Type

Standalone binary

Worker Mode

No

Operating System

GNU/Linux

CPU Architecture

Apple Silicon

PHP configuration

no specific php configuration

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions