Unexpected Connection Reset: A PHP or an Apache issue?

后端 未结 8 567
时光说笑
时光说笑 2020-12-10 15:05

I have a PHP script that keeps stopping at the same place every time and my browser reports:

The connection to the server was reset while the page w

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-10 16:07

    I also had this problem today, it turned out to be a stray break; statement in the PHP code (outside of any switch or any loop), in a function with a try...catch...finally block.

    Looks like PHP crashes in this situation:

    This was with PHP version 5.5.5.

提交回复
热议问题