[php-src] PHP-8.5: ext/opcache: move bug66338.phpt cleanup to --CLEAN--
| From: | Jorg Sowa | Date: | Sat, 17 Oct 2026 20:43:11 +0000 |
| Subject: | [php-src] PHP-8.5: ext/opcache: move bug66338.phpt cleanup to --CLEAN-- | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142368@lists.php.net to get a copy of this message | ||
Author: Jorg Sowa (jorgsowa)
Date: 2026-10-17T11:56:59+02:00
Commit: https://github.com/php/php-src/commit/14f0d871e598008c53a989061afd9c423324fdc5
Raw diff: https://github.com/php/php-src/commit/14f0d871e598008c53a989061afd9c423324fdc5.diff
ext/opcache: move bug66338.phpt cleanup to --CLEAN--
The generated helper files were removed at the end of --FILE--, so any
failure before that point (e.g. the CLI server failing to start) left
bug66338-Officials.inc and the client scripts behind in the tests
directory. Move the cleanup to a --CLEAN-- section so it always runs.
Changed paths:
M ext/opcache/tests/bug66338.phpt
Diff:
diff --git a/ext/opcache/tests/bug66338.phpt b/ext/opcache/tests/bug66338.phpt
index 61065a8e3fa8..16bed0da0fb6 100644
--- a/ext/opcache/tests/bug66338.phpt
+++ b/ext/opcache/tests/bug66338.phpt
@@ -34,10 +34,12 @@ php_cli_server_start("-d opcache.enable=1 -d opcache.enable_cli=1 -d
opcache.opt
echo file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS .
"/$base-clientUS.php" );
echo file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS .
"/$base-clientUK.php" );
-
-unlink("$root-Officials.inc");
-unlink("$root-clientUS.php");
-unlink("$root-clientUK.php");
+?>
+--CLEAN--
+<?php
+unlink(__DIR__ . "/bug66338-Officials.inc");
+unlink(__DIR__ . "/bug66338-clientUS.php");
+unlink(__DIR__ . "/bug66338-clientUK.php");
?>
--EXPECT--
The President of the USA is Barack Hussein Obama II