summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-12-30 18:26:24 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-12-30 18:26:24 +0100
commit446ad04524ca7fb146354763e62e5da8d9fe4c27 (patch)
tree4cd1c1c371848b09babbe09023477ba8370fdb3b /build
parentabecaab09f8d39b5d2d6bc336e91595aae0d5a91 (diff)
downloadphp-git-446ad04524ca7fb146354763e62e5da8d9fe4c27.tar.gz
Fix refentry attribute replacing
Diffstat (limited to 'build')
-rwxr-xr-xbuild/gen_stub.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/gen_stub.php b/build/gen_stub.php
index 9301328892..5d651daaf2 100755
--- a/build/gen_stub.php
+++ b/build/gen_stub.php
@@ -1715,8 +1715,8 @@ function replaceMethodSynopses(string $targetDirectory, array $funcMap, array $a
$replacedXml = preg_replace(
[
"/REPLACED-ENTITY-([A-Za-z0-9._{}%-]+?;)/",
- "/<refentry\s+xmlns=\"([a-z0-9.:\/]+)\"\s+xml:id=\"([a-z._-]+)\"\s*>/i",
- "/<refentry\s+xmlns=\"([a-z0-9.:\/]+)\"\s+xmlns:xlink=\"([a-z0-9.:\/]+)\"\s+xml:id=\"([a-z._-]+)\"\s*>/i",
+ "/<refentry\s+xmlns=\"([a-z0-9.:\/]+)\"\s+xml:id=\"([a-z0-9._-]+)\"\s*>/i",
+ "/<refentry\s+xmlns=\"([a-z0-9.:\/]+)\"\s+xmlns:xlink=\"([a-z0-9.:\/]+)\"\s+xml:id=\"([a-z0-9._-]+)\"\s*>/i",
],
[
"&$1",