Fork / TCPServer : manage the background job to catch the errors triggered by PHP
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5981 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -357,6 +357,9 @@ class tcpserver
|
||||
// Will catch all the text messages from the application to not crash if
|
||||
// there is an "echo"
|
||||
ob_start ();
|
||||
// Catch the error messages from the application to not hang if triggered
|
||||
// An other handler can be set in function to execute
|
||||
set_error_handler (function () {});
|
||||
@fclose (STDIN);
|
||||
@fclose (STDOUT);
|
||||
@fclose (STDERR);
|
||||
|
||||
Reference in New Issue
Block a user