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...

日拱一卒
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
讨论数量: 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年前 评论

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