PHP 升级到 7.3 后,出现 BUG:PHP Fatal error: Uncaught ErrorException: preg_match_all (): JIT compilation failed: no more memory in phar

file

This is a known PHP 7.3 bug.

As a temporary fix, edit your php.ini file (in my case: vi /usr/local/etc/php/7.3/php.ini), disable PHP PCRE JIT compilation by changing:

;pcre.jit=1
pcre.jit=0

参考:https://stackoverflow.com/questions/536906...

日拱一卒
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 4

PHP 7.3 问题还挺多的,OPCache、XDebug 之类的引起了一些兼容性问题。

5年前 评论

@Wi1dcard 刚看了一下,还真是,XDebug用不了啦。。

5年前 评论

哎,PHP7.3还是没搞明白,xdebug用不了。最后不得不把7.3卸载掉,重新安装回7.2,大致步骤如下:

> brew uninstall php
> brew install php@7.2
> vi /usr/local/etc/php/7.2/conf.d/ext-xdebug.ini (xdebug.remote_port=9001) # 注意不能和nginx配置文件中的fastcgi_pass   127.0.0.1:9000; 的端口冲突,否则会出现页面假死。
> brew services restart php@7.2
5年前 评论

7.3 不是还没JIT吗

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!