Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public static function detachIncomingRequest() { |
||
25 | // Some dark magic to terminate incoming connection but still keep run a script |
||
26 | |||
27 | ob_end_clean(); |
||
28 | ignore_user_abort(true); |
||
29 | ob_start(); |
||
30 | header("Connection: close"); |
||
31 | header("Content-Length: " . ob_get_length()); |
||
32 | ob_end_flush(); |
||
33 | flush(); |
||
34 | |||
57 |