【发布时间】:2016-09-16 07:22:33
【问题描述】:
为什么php或apache不停止无限循环?
while (true)
{
sleep(5);
}
Apache 的默认 TimeOut = 300。 php - max_execution_time = 30
但这个循环可能会持续一个小时。为什么?
【问题讨论】:
-
您希望您的 Apache 在最大时间后停止您的
while循环吗?你为什么想要那个? -
不要为此超时?
标签: php apache timeout infinite-loop