Skip to content

Running bug66338.phpt mangles path when cloning into a directory with '.php' character sequences in the pathname - #24420

Closed
hakre wants to merge 1 commit into
php:PHP-8.4from
hakre:patch-2
Closed

hakre wants to merge 1 commit into
php:PHP-8.4from
hakre:patch-2

Conversation

@hakre

@hakre hakre commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Stripping the '.php' character sequence as basename suffix only fixed the issue for me.

I compared with the --CLEAN-- section which had recent edits previously. #24381

@hakre

hakre commented Oct 18, 2026

Copy link
Copy Markdown
Contributor Author

bug66338.diff

001- The President of the USA is Barack Hussein Obama II
002- The Prime Minister of the UK is David William Donald Cameron
001+ Warning: file_put_contents(): Failed to open stream: No such file or directory in /.../.php-src/ext/opcache/tests/bug66338.php on line 5
002+ 
003+ Warning: file_put_contents(): Failed to open stream: No such file or directory in /.../.php-src/ext/opcache/tests/bug66338.php on line 9
004+ 
005+ Warning: file_put_contents(): Failed to open stream: No such file or directory in /.../.php-src/ext/opcache/tests/bug66338.php on line 15
006+ 
007+ Warning: file_get_contents(): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
008+  in /.../.php-src/ext/opcache/tests/bug66338.php on line 26
009+ 
010+ Warning: file_get_contents(): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
011+  in /.../.php-src/ext/opcache/tests/bug66338.php on line 27

@hakre

hakre commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@jorgsowa if I'm not mistaken this miniscule contribution of mine should be in symmetry with your recent edits in the file. I'd be delighted if you can take a look as I centered this small change on the gravity in the clean section you stabilized on __DIR__.

@jorgsowa jorgsowa closed this in fd3a97d Oct 19, 2026
@jorgsowa

Copy link
Copy Markdown
Contributor

Thanks!

@hakre

hakre commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

The pleasure is on my side, thank you for the quick turnaround and have a nice day! @jorgsowa

@hakre
hakre deleted the patch-2 branch October 19, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants