Commit 76c40ecbe33 for php.net
commit 76c40ecbe33a698899fbb016ad882aed5c093452
Author: Jorg Adam Sowa <jorg.sowa@gmail.com>
Date: Mon Jul 6 19:06:53 2026 +0200
Fix incorrect method case for SplFileInfo::getPathname() in gen_stub.php (#22597)
getPathName() was called instead of the correctly-cased getPathname().
diff --git a/build/gen_stub.php b/build/gen_stub.php
index 1e1d53c5146..715a4718234 100755
--- a/build/gen_stub.php
+++ b/build/gen_stub.php
@@ -84,7 +84,7 @@ function processDirectory(string $dir, Context $context): array {
RecursiveIteratorIterator::LEAVES_ONLY
);
foreach ($it as $file) {
- $pathName = $file->getPathName();
+ $pathName = $file->getPathname();
if (str_ends_with($pathName, '.stub.php')) {
$pathNames[] = $pathName;
}
@@ -5561,7 +5561,7 @@ function replacePredefinedConstants(string $targetDirectory, array $constMap, ar
);
foreach ($it as $file) {
- $pathName = $file->getPathName();
+ $pathName = $file->getPathname();
if (!preg_match('/(?:[\w\.]*constants[\w\._]*|tokens).xml$/i', basename($pathName))) {
continue;
}
@@ -5742,7 +5742,7 @@ function replaceClassSynopses(
);
foreach ($it as $file) {
- $pathName = $file->getPathName();
+ $pathName = $file->getPathname();
if (!preg_match('/\.xml$/i', $pathName)) {
continue;
}
@@ -5959,7 +5959,7 @@ function replaceMethodSynopses(
);
foreach ($it as $file) {
- $pathName = $file->getPathName();
+ $pathName = $file->getPathname();
if (!preg_match('/\.xml$/i', $pathName)) {
continue;
}