qiulangs-MacBook-Pro:extensions qiulang$ pecl -vvv install debug
Warning: fsockopen(): SSL: Handshake timed out in Proxy.php on line 183
Warning: fsockopen(): Failed to enable crypto in Proxy.php on line 183
Warning: fsockopen(): unable to connect to ssl://pecl.php.net:443 (Unknown error) in Proxy.php on line 183
No releases available for package "pecl.php.net/debug"
Cannot initialize 'channel://pecl.php.net/debug', invalid or missing package file
Package "channel://pecl.php.net/debug" is not valid
install failed
我用brew安装php 7.2和7.3,并尝试使用pecl,但是我得到了相同的错误。
虽然我的同事可以使用pecl(也可以使用brew install php@7.2),但没有任何问题。因此,我的设置一定有问题。
qiulangs-MacBook-Pro:sbin qiulang$ php -r "print_r(openssl_get_cert_locations());"
Array
(
[default_cert_file] => /usr/local/libressl-2.2/etc/ssl/cert.pem
[default_cert_file_env] => SSL_CERT_FILE
[default_cert_dir] => /usr/local/libressl-2.2/etc/ssl/certs
[default_cert_dir_env] => SSL_CERT_DIR
[default_private_dir] => /usr/local/libressl-2.2/etc/ssl/private
[default_default_cert_area] => /usr/local/libressl-2.2/etc/ssl
[ini_cafile] =>
[ini_capath] =>
)