[php-src] PHP-8.6: Fix deprecation warn in test
| From: | ndossche | Date: | Sun, 01 Nov 2026 11:31:56 +0000 |
| Subject: | [php-src] PHP-8.6: Fix deprecation warn in test | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143128@lists.php.net to get a copy of this message | ||
Author: ndossche (ndossche)
Date: 2026-11-01T12:30:22+01:00
Commit: https://github.com/php/php-src/commit/8b03a99f877e9b93748ab7259792885328b04814
Raw diff: https://github.com/php/php-src/commit/8b03a99f877e9b93748ab7259792885328b04814.diff
Fix deprecation warn in test
Changed paths:
M sapi/cli/tests/gh9670.phpt
Diff:
diff --git a/sapi/cli/tests/gh9670.phpt b/sapi/cli/tests/gh9670.phpt
index 2df588db372c..a84bc9713f06 100644
--- a/sapi/cli/tests/gh9670.phpt
+++ b/sapi/cli/tests/gh9670.phpt
@@ -9,7 +9,7 @@ include "skipif.inc";
$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
-foreach (explode("\n",
$php -n -h) as $line) {
+foreach (explode("\n", shell_exec("$php -n -h")) as $line) {
if (preg_match('/^ -[Cq] /', $line)) {
echo $line, "\n";
}