fix: prevent crash when calling apache_request_headers() in non-HTTP context

This commit is contained in:
Kévin Dunglas
2024-02-27 17:03:04 +01:00
parent 963b3e0f59
commit b71dae9b03
3 changed files with 19 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
<?php
apache_request_headers();
require_once __DIR__.'/_executor.php';
return function() {