zsh: недопустимая аппаратная инструкция PHP ma c os 10.15.6 - PullRequest
0 голосов
/ 04 августа 2020

при выполнении кода в терминале выдает такую ​​ошибку

class checkFB {


    public function curlSend ()
    {
        $handle = curl_init();
 
        $url = "https://www.facebook.com/";
 
        // Set the url
        curl_setopt($handle, CURLOPT_URL, $url);
        // Set the result output to be a string.
        curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
 
        $output = curl_exec($handle);
 
        curl_close($handle);
 
        echo $output;
    }


    public function test()
    {

        $this->curlSend();
    }
}

$oFb = new checkFB();
$oFb -> test();


OS: 19.6.0 Darwin Kernel Version 19.6.0: Sun 5 Jul, 00:43:10 PDT 2020; root: xnu-6153.141.1 ~ 9 / RELEASE_X86_64 x86_64

php -v
PHP 7.4.8 (cli) (built: Jul 30 2020 02:10:12) ( NTS )
php check.php
zsh: illegal hardware instruction  php check.php

помогите пожалуйста: (

...