This function sets the sandbox error handler and the handled error types. The handler accepts the error number,
the error message, the error file, the error line, the error context and the sandbox instance as arguments.
If the error handler does not handle errors correctly then the sandbox's security may become compromised!
}, E_ALL); //ignore all errors, INSECURE