|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests |
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
Description: ------------ I enable and disable ignore_user_abort a few times during the execution but if the user aborts the request while the code is in a section that ignores it, it (of course) ignores it. But when I call ignore_user_abort(false) it doesn't check whether it was already aborted. I think it would be useful to check whether we are already aborted when disabling the ignoring. Test script: --------------- It could also be accomplished with: ignore_user_abort(true); // critical section ignore_user_abort(false); if(connection_aborted()) { exit; }