./libraries/classes/Util.php#1425 preg_replace() 中的警告:JIT 编译失败:没有更多内存

Warning in ./libraries/classes/Util.php#1425 preg_replace(): JIT compilation failed: no more memory

我正在尝试离线构建站点并登录以创建子主题,但出现了一些错误。

我尝试将以下行添加到 php.ini:"pcre.jit=0"

这是显示的错误:

Warning in ./libraries/classes/Util.php#1425 preg_replace(): JIT compilation failed: no more memory

Backtrace

./libraries/classes/Util.php#1425: preg_replace( string '/\.?0+$/', string '', string '48.0', ) ./libraries/classes/Util.php#1295: PhpMyAdmin\Util::formatNumber( double 48.0, integer 5, integer 1, boolean true, ) ./libraries/classes/Controllers/Database/DatabaseStructureController.php#1127: PhpMyAdmin\Util::formatByteDown( double 48.0, integer 3, integer 1, ) ./libraries/classes/Controllers/Database/DatabaseStructureController.php#1006: PhpMyAdmin\Controllers\Database\DatabaseStructureController->getValuesForInnodbTable( array, integer 49152, ) ./libraries/classes/Controllers/Database/DatabaseStructureController.php#438: PhpMyAdmin\Controllers\Database\DatabaseStructureController->getStuffForEngineTypeTable( array, integer 0, integer 0, ) ./libraries/classes/Controllers/Database/DatabaseStructureController.php#195: PhpMyAdmin\Controllers\Database\DatabaseStructureController->displayTableList() ./db_structure.php#38: PhpMyAdmin\Controllers\Database\DatabaseStructureController->indexAction()

如果您使用 MAMP,您应该找到“$YourMampDir/php/etc/php.ini”文件。打开,寻找:

; Enables or disables JIT compilation of patterns. This requires the PCRE
; library to be compiled with JIT support.
; pcre.jit=1

您应该将其编辑为:

; Enables or disables JIT compilation of patterns. This requires the PCRE
; library to be compiled with JIT support.
pcre.jit=0

不要忘记重新加载您的 Apache Web 服务器。之后,错误应该消失了。