From 88d6a7e2364b384b5aafac3fa0e51031bd52c0f1 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 28 Jul 2026 03:34:22 +0000 Subject: [PATCH] fix: avoid explode(null) when _APP_DOMAIN_FUNCTIONS is unset Default the env lookup to an empty string so PHP 8.3 no longer emits a deprecation warning on every request that goes through the dispatch path. Fixes part of #12798 Co-authored-by: Chirag Aggarwal --- app/http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/http.php b/app/http.php index 68202f3218..67c48ef2f8 100644 --- a/app/http.php +++ b/app/http.php @@ -126,7 +126,7 @@ function dispatch(\Swoole\Http\Server $server, int $fd, int $type, $data = null) // executions request coming from custom domain $risky = true; } else { - foreach (\explode(',', System::getEnv('_APP_DOMAIN_FUNCTIONS')) as $riskyDomain) { + foreach (\explode(',', System::getEnv('_APP_DOMAIN_FUNCTIONS', '')) as $riskyDomain) { if (empty($riskyDomain)) { continue; }