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 <chiragaggarwal5k@gmail.com>
This commit is contained in:
Cursor AgentandChirag Aggarwal committed 2026-07-28 03:34:22 +00:00
1 parent 25f856e779
commit 88d6a7e236
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}