From c08535c8041de49903edba74012cb8e689cda3b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Thu, 30 May 2024 09:46:24 +0200 Subject: [PATCH] Fix regex for searching for constant lists https://github.com/php/php-src/commit/0242577b3378c91e5d973132e175849f3ca0cdc3 partly fixed the detection of external constant lists referenced on Predefined Constants pages, but changing the file search regex is needed too in order to fully fix the underlying issue in case of cURL constants. --- build/gen_stub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index 899033aef9f..b648c1469b1 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -5326,7 +5326,7 @@ function replacePredefinedConstants(string $targetDirectory, array $constMap, ar foreach ($it as $file) { $pathName = $file->getPathName(); - if (!preg_match('/(?:[\w\.]*constants[\w\.]*|tokens).xml$/i', basename($pathName))) { + if (!preg_match('/(?:[\w\.]*constants[\w\._]*|tokens).xml$/i', basename($pathName))) { continue; }