PHP connection_aborted() not working correctly
问题 I have the following code: ignore_user_abort(true); while(!connection_aborted()) { // do stuff } and according to the PHP documentation, this should run until the connection is closed, but for some reason, it doesn't, instead it keeps running until the script times out. I've looked around online and some recommended adding echo chr(0); flush(); into the loop, but that doesn't seem to do anything either. Even worse, if I just leave it as while(true) { // do stuff } PHP still continues to run