问题在于:
echo 'Hello...';
die('I died...');
echo 'HAHAHA!!!';
在web浏览器上,它在die()之后执行echo.
我的规格:
另外,我在windows上有一个很长时间的测试服务器,当调用exit或die时,它正在退出脚本,但debian测试服务器上不知怎么没有这样做.
我有什么遗漏吗?
提前感谢....
2022-07-27更新:
I've updated the PHP version (same happening):
@MarkusZeller yes is disabled the opcache:
仍然不工作...
开发环境是带有Debian 11(WSL2)的windows,我昨天也在家里安装了基本Debian 11的测试机上试用了它,它也有同样的问题.Debian 11测试服务器也在工作.
@YourCommonSense the script is the same. Here is the nginx path config: