Commit 467970b5d60 for php
commit 467970b5d60f90260268ece91eccc0702cfce478
Author: Shivam Mathur <shivam_jpr@hotmail.com>
Date: Tue Nov 3 01:56:32 2026 +0530
Fix Windows extension loading in serialization context test (#25166)
diff --git a/sapi/cli/tests/serialization_context_request_reset.phpt b/sapi/cli/tests/serialization_context_request_reset.phpt
index caaf086ab17..9a8a10443b6 100644
--- a/sapi/cli/tests/serialization_context_request_reset.phpt
+++ b/sapi/cli/tests/serialization_context_request_reset.phpt
@@ -37,7 +37,7 @@
"-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";