[php-src] master: Fix Windows extension loading in serialization context test (#25166)
| From: | Shivam Mathur via GitHub | Date: | Mon, 02 Nov 2026 20:26:36 +0000 |
| Subject: | [php-src] master: Fix Windows extension loading in serialization context test (#25166) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143242@lists.php.net to get a copy of this message | ||
Author: Shivam Mathur (shivammathur)
Committer: GitHub (web-flow)
Pusher: shivammathur
Date: 2026-11-03T01:56:32+05:30
Commit: https://github.com/php/php-src/commit/467970b5d60f90260268ece91eccc0702cfce478
Raw diff: https://github.com/php/php-src/commit/467970b5d60f90260268ece91eccc0702cfce478.diff
Fix Windows extension loading in serialization context test (#25166)
Changed paths:
M sapi/cli/tests/serialization_context_request_reset.phpt
Diff:
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";