[php-src] PHP-8.4: Preserve PATH in filter OOM tests for Windows ASan (#25163)
| From: | Shivam Mathur via GitHub | Date: | Mon, 02 Nov 2026 18:18:22 +0000 |
| Subject: | [php-src] PHP-8.4: Preserve PATH in filter OOM tests for Windows ASan (#25163) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143226@lists.php.net to get a copy of this message | ||
Author: Shivam Mathur (shivammathur)
Committer: GitHub (web-flow)
Pusher: shivammathur
Date: 2026-11-02T23:48:19+05:30
Commit: https://github.com/php/php-src/commit/4dece7547190100457b4f62ef0a4e68c2cf826cc
Raw diff: https://github.com/php/php-src/commit/4dece7547190100457b4f62ef0a4e68c2cf826cc.diff
Preserve PATH in filter OOM tests for Windows ASan (#25163)
Changed paths:
M ext/filter/tests/oom_filter_default_encoded.phpt
M ext/filter/tests/oom_filter_input.phpt
M ext/filter/tests/oom_filter_input_array.phpt
Diff:
diff --git a/ext/filter/tests/oom_filter_default_encoded.phpt
b/ext/filter/tests/oom_filter_default_encoded.phpt
index 4e81326639a0..c8f9ef8d0bd0 100644
--- a/ext/filter/tests/oom_filter_default_encoded.phpt
+++ b/ext/filter/tests/oom_filter_default_encoded.phpt
@@ -38,6 +38,8 @@ function oom_post_encoded(string $body, string $script): void
'CONTENT_LENGTH' => (string) strlen($body),
'SCRIPT_FILENAME' => $script,
'REDIRECT_STATUS' => '1',
+ /* PATH is needed to find ASan DLLs (and maybe others) on Windows */
+ 'PATH' => getenv('PATH'),
]
);
fwrite($pipes[0], $body);
diff --git a/ext/filter/tests/oom_filter_input.phpt b/ext/filter/tests/oom_filter_input.phpt
index aef71dff563c..a59e882533ae 100644
--- a/ext/filter/tests/oom_filter_input.phpt
+++ b/ext/filter/tests/oom_filter_input.phpt
@@ -33,6 +33,8 @@ $p = proc_open(
'CONTENT_LENGTH' => (string) strlen($body),
'SCRIPT_FILENAME' => $script,
'REDIRECT_STATUS' => '1',
+ /* PATH is needed to find ASan DLLs (and maybe others) on Windows */
+ 'PATH' => getenv('PATH'),
]
);
fwrite($pipes[0], $body);
diff --git a/ext/filter/tests/oom_filter_input_array.phpt
b/ext/filter/tests/oom_filter_input_array.phpt
index a8e2712271c6..b317d86bee29 100644
--- a/ext/filter/tests/oom_filter_input_array.phpt
+++ b/ext/filter/tests/oom_filter_input_array.phpt
@@ -33,6 +33,8 @@ $p = proc_open(
'CONTENT_LENGTH' => (string) strlen($body),
'SCRIPT_FILENAME' => $script,
'REDIRECT_STATUS' => '1',
+ /* PATH is needed to find ASan DLLs (and maybe others) on Windows */
+ 'PATH' => getenv('PATH'),
]
);
fwrite($pipes[0], $body);