Commit 14f0d871e59 for php
commit 14f0d871e598008c53a989061afd9c423324fdc5
Author: Jorg Sowa <jorg.sowa@gmail.com>
Date: Sat Oct 17 11:56:59 2026 +0200
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.
diff --git a/ext/opcache/tests/bug66338.phpt b/ext/opcache/tests/bug66338.phpt
index 61065a8e3fa..16bed0da0fb 100644
--- a/ext/opcache/tests/bug66338.phpt
+++ b/ext/opcache/tests/bug66338.phpt
@@ -34,10 +34,12 @@ class LocalTerms { const GOV_LEADER = "David William Donald Cameron"; }
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