Commit fd3a97d1c83 for php

commit fd3a97d1c83bf3841db3918b9c99af450314cb3a
Author: hakre <hanskrentel@yahoo.de>
Date:   Mon Oct 19 00:53:07 2026 +0200

    Fix bug66338.phpt mangling path containing '.php' sequences

    Closes GH-24420

diff --git a/ext/opcache/tests/bug66338.phpt b/ext/opcache/tests/bug66338.phpt
index 16bed0da0fb..112a0896175 100644
--- a/ext/opcache/tests/bug66338.phpt
+++ b/ext/opcache/tests/bug66338.phpt
@@ -8,7 +8,7 @@
 server
 --FILE--
 <?php
-$root  = str_replace('.php', "", __FILE__);
+$root  = __DIR__ . '/' . basename(__FILE__, '.php');
 $base  = basename( $root );

 file_put_contents( "$root-Officials.inc", '<?php