diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-15 22:52:35 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-15 22:52:35 +0900 |
| commit | f9f5b7b5c51b2141540f4b5d96c357c9de1d010f (patch) | |
| tree | 37a023d718a75aec7f8512182cfb5d43995f1fe6 /worker/exec.mjs | |
| parent | 6fe42b8840fd3508615e022cc65dad28a335abcd (diff) | |
| download | phperkaigi-2025-albatross-f9f5b7b5c51b2141540f4b5d96c357c9de1d010f.tar.gz phperkaigi-2025-albatross-f9f5b7b5c51b2141540f4b5d96c357c9de1d010f.tar.zst phperkaigi-2025-albatross-f9f5b7b5c51b2141540f4b5d96c357c9de1d010f.zip | |
feat(worker): disable error reporting for E_WARNING, E_NOTICE and E_DEPRECATED
Diffstat (limited to 'worker/exec.mjs')
| -rw-r--r-- | worker/exec.mjs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/worker/exec.mjs b/worker/exec.mjs index fc0accd..81dba8b 100644 --- a/worker/exec.mjs +++ b/worker/exec.mjs @@ -6,6 +6,8 @@ process.once("message", async ({ code: originalCode, input }) => { define('STDOUT', fopen('php://stdout', 'r')); define('STDERR', fopen('php://stderr', 'r')); + error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE & ~E_DEPRECATED); + `; // remove php tag |
