[英]PHP die() function suddenly stops showing message string
I have upgraded my server Ubuntu version, and with it, PHP to 8.1.我已经将我的服务器 Ubuntu 版本以及 PHP 升级到 8.1。
After finishing all that stuff, I noticed that PHP die() function is not working properly:完成所有这些后,我注意到 PHP die() function 无法正常工作:
Example 1 -> die("Lorem ipsum"); // not showing anything at all
Example 2 -> echo "Lorem"; die("Ipsum"); // showing "Lorem"
In my local apache it works fine, I don't know where to look.在我当地的 apache 中,它工作正常,我不知道去哪里找。
Things I tried:我尝试过的事情:
Do you have any idea what can I look for?你知道我可以找什么吗?
After a thorough analysis, I have discovered where the issue came from.经过彻底的分析,我发现了问题的根源。 I uninstalled all PHP packages at one server, and then started installing them one by one while testing output.
我在一台服务器上卸载了所有 PHP 包,然后在测试 output 的同时开始一一安装。
It seems that the problem was being caused by a package: php8.1-uopz似乎问题是由 package: php8.1-uopz 引起的
After installing all again, but that packag the bug dissapeared.再次安装后,但那个包错误消失了。
So, in all other servers, just running所以,在所有其他服务器中,只是运行
sudo apt autoremove php8.1-uopz
Fixed the issue.修复了问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.