运行composer
preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled.
There’s no bug in PHP (there have been other PHP PCRE JIT bugs) but @c00000fd’s issue is not a bug. PHP tries to get executable memory for the PCRE JIT and is blocked by Dreamhost’s configuration (I think because /tmp is mounted noexec, Dreamhost doesn’t appear to use SELinux, in any case the reason isn’t important). PHP then displays this message, falls back to non-JIT PCRE, and continues processing with the JIT disabled. That’s why this message only appears sometimes and pages otherwise appear normal. The fix is to put pcre.jit=0 into php.ini, see my comment on that answer below
https://stackoverflow.com/questions/59231779/allocation-of-jit-memory-failed-pcre-jit-will-be-disabled-warning-in-php-7
https://stackoverflow.com/questions/53690624/errors-installing-composer-on-macos-jit-compilation-failed
https://github.com/composer/composer/issues/7836
https://serverfault.com/questions/991549/grant-php-permission-to-allocate-executable-memory
vi /usr/local/lib/php.ini
pcre.jit=0
问题解决
Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in phar:///Users/didi/composer.phar/src/Composer/Repository/RepositoryManager.php:129
[Symfony\Component\Console\Exception\RuntimeException]
Too many arguments, expected arguments “command”.
https://github.com/composer/composer/issues/8924
下载2.0 解决问题
curl -O https://getcomposer.org/download/2.0.0-alpha2/composer.phar
https://getcomposer.org/download/
PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in ~/.composer/vendor/dpcs/phpcs/src/Helper.php on line 133
https://github.com/squizlabs/PHP_CodeSniffer/issues/2558
Update PHP_CodeSniffer to version 3.x TruckersMP/API-Client#14
https://github.com/wprig/wprig/issues/412
[Symfony\Component\Process\Exception\RuntimeException]
The process has been signaled with signal “5”.
https://github.com/symfony/symfony/issues/8654
https://github.com/composer/composer/issues/2146
https://github.com/composer/composer/issues/2146
$brew upgrade subversion
$brew link –overwrite subversion
Error: subversion not installed
$ brew install subversion
Error: SHA256 mismatch
Expected: 01059532335fefc5e0e7a23cc79eeb1dc6fea477606981b89f259aa0e0f9abc1
Actual: d11eb4caf224bc2451e0e7fd5ce1bf40c0515ce30352bc44a1ea63fe9fa88af1
https://stackoverflow.com/questions/23273713/homebrew-in-os-x-10-9-2-error-sha256-mismatch
brew cleanup && brew update
放弃了,切回PHP7
580 ./buildconf –force
581 ./configure
582 make
585 make install
Installing PEAR environment: /usr/local/lib/php/
Warning: fopen(): Unable to find the wrapper “https” - did you forget to enable it when you configured PHP? in /Users/didi/PhpstormProjects/c/php-src/pear/fetch.php on line 66
Warning: fopen(https://pear.php.net/install-pear-nozlib.phar): failed to open stream: No such file or directory in /Users/didi/PhpstormProjects/c/php-src/pear/fetch.php on line 66
Error..
fopen(https://pear.php.net/install-pear-nozlib.phar): failed to open stream: No such file or directory
make: *** [install-pear] Error 1
$php -v
PHP 7.0.8 (cli) (built: Jul 31 2020 17:48:43) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
https://my.oschina.net/u/4391872/blog/4255330
https://zhuanlan.zhihu.com/p/54836199
https://www.cnblogs.com/starcrm/p/12781171.html