Error encountered following the instructions in “…/connect-examples/v2/php_payment/README.md” when running “composer install”.
I see the “no more memory” message but I don’t think that’s really the issue. I’ve run composer successfully before. What’s it trying to tell me?
I also see a reference to “/usr/local/bin/composer/vendor/…” in the error message. On my system /usr/local/bin/composer is the composer php file, not a directory. Is there a problem here? Looking at the composer file was not enlightening.
I reinstalled composer–same result. I tried as root–same result. I re-extracted the source code from the zip file I downloaded from connect-api-examples/connect-examples/v2/php_payment at master · square/connect-api-examples · GitHub – same result.
What to try next?
MacOS 10.12.6, 16 GB RAM
$ composer install
PHP Fatal error: Uncaught ErrorException: preg_match_all(): JIT compilation failed: no more memory in phar:///usr/local/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php:152
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle(2, ‘preg_match_all(…’, ‘phar:///usr/loc…’, 152, Array)
#1 phar:///usr/local/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php(152): preg_match_all(’#<(([a-z](?:[^\…’, ‘’, Array, 256)
#2 phar:///usr/local/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php(135): Symfony\Component\Console\Formatter\OutputFormatter->formatAndWrap(’’, 0)
#3 phar:///usr/local/bin/composer/vendor/symfony/console/Output/Output.php(157): Symfony\Component\Console\Formatter\OutputFormatter->format(’’)
#4 phar:///usr/local/bin/composer/vendor/symfony/console/Output/Output.php(132): Symfony\Component\Console\Output\Output->write(Array, true, 16)
#5 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(827): Symfony\Component\Console\Output\Outp in phar:///usr/local/bin/composer/vendor/symfony/console/Formatter/OutputFormatter.php on line 152