From 2cc504a81b0e23ea8b3d4628020cd0728f67702c Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 3 Nov 2026 00:40:21 +0530 Subject: [PATCH] Fix Windows extension loading in serialization context test --- sapi/cli/tests/serialization_context_request_reset.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/cli/tests/serialization_context_request_reset.phpt b/sapi/cli/tests/serialization_context_request_reset.phpt index caaf086ab179..9a8a10443b60 100644 --- a/sapi/cli/tests/serialization_context_request_reset.phpt +++ b/sapi/cli/tests/serialization_context_request_reset.phpt @@ -37,7 +37,7 @@ $args = [ "-d", "session.save_path=$sessionDir", ]; foreach (["session", "zend_test"] as $extension) { - $path = ini_get("extension_dir") . DIRECTORY_SEPARATOR . $extension . "." . PHP_SHLIB_SUFFIX; + $path = ini_get("extension_dir") . DIRECTORY_SEPARATOR . (PHP_OS_FAMILY === "Windows" ? "php_" : "") . $extension . "." . PHP_SHLIB_SUFFIX; if (file_exists($path)) { $args[] = "-d"; $args[] = "extension=$path";