{"id":351,"date":"2019-01-03T10:18:16","date_gmt":"2019-01-03T02:18:16","guid":{"rendered":"https:\/\/wp.winter-weng.cc\/work\/?p=351"},"modified":"2021-03-06T16:09:11","modified_gmt":"2021-03-06T08:09:11","slug":"php-%e5%ae%89%e8%a3%9d-composer-%e9%81%87%e5%88%b0-jit-compilation-failed","status":"publish","type":"post","link":"https:\/\/wp.winter-weng.cc\/work\/?p=351","title":{"rendered":"[PHP] \u5b89\u88dd Composer \u9047\u5230 JIT compilation failed"},"content":{"rendered":"\n<p>PHP 7 \u5728\u00a0<code>PCRE<\/code>\u00a0\u4e2d\u52a0\u5165\u4e86\u00a0<code>JIT<\/code>\u00a0\u529f\u80fd\uff0c\u5c0e\u81f4 Composer \u5b89\u88dd\u6703\u9047\u5230\u4ee5\u4e0b\u932f\u8aa4\u8a0a\u606f\uff1a<\/p>\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">PHP Fatal error:  Uncaught ErrorException: preg_match_all(): JIT compilation failed: no more memory in phar:\/\/\/usr\/local\/Cellar\/composer\/1.8.0\/bin\/composer\/vendor\/symfony\/console\/Formatter\/OutputFormatter.php:137<\/pre>\n\n\n<p>\u66ab\u6642\u7684\u89e3\u6cd5\u662f\u5148\u5c07 <code>pcre.jit<\/code> \u95dc\u9589\uff1a<\/p>\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ vi \/usr\/local\/etc\/php\/7.3\/php.ini\n;pcre.jit=1\npcre.jit=0<\/pre>\n\n\n<p>\u53c3\u8003\uff1a<a rel=\"noreferrer noopener\" aria-label=\"Errors Installing Composer on macOS (JIT compilation Failed) (\u5728\u65b0\u5206\u9801\u4e2d\u958b\u555f)\" href=\"https:\/\/stackoverflow.com\/questions\/53690624\/errors-installing-composer-on-macos-jit-compilation-failed\" target=\"_blank\">Errors Installing Composer on macOS (JIT compilation Failed)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP 7 \u5728\u00a0PCRE\u00a0\u4e2d\u52a0\u5165\u4e86\u00a0JIT\u00a0\u529f\u80fd\uff0c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[8],"tags":[35],"class_list":["post-351","post","type-post","status-publish","format-standard","hentry","category-php","tag-35"],"_links":{"self":[{"href":"https:\/\/wp.winter-weng.cc\/work\/index.php?rest_route=\/wp\/v2\/posts\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.winter-weng.cc\/work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.winter-weng.cc\/work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.winter-weng.cc\/work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.winter-weng.cc\/work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=351"}],"version-history":[{"count":1,"href":"https:\/\/wp.winter-weng.cc\/work\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":622,"href":"https:\/\/wp.winter-weng.cc\/work\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions\/622"}],"wp:attachment":[{"href":"https:\/\/wp.winter-weng.cc\/work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.winter-weng.cc\/work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.winter-weng.cc\/work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}