summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorTyson Andre <tysonandre775@hotmail.com>2020-08-23 11:12:44 -0400
committerTyson Andre <tysonandre775@hotmail.com>2020-08-23 11:51:57 -0400
commit4bba59d4913c0904cce186d50b0343f567093a20 (patch)
treea55bd2d82c43720660e9b92fe59b35a5aa600690 /build
parente6044d4455d7fbaced7f3a6ac28172d963017e51 (diff)
downloadphp-git-4bba59d4913c0904cce186d50b0343f567093a20.tar.gz
Update PHP-Parser from 4.3.0 to 4.9.0
PHP-Parser 4.3.0 failed to recognize that the `match` keyword could be used as a class constant name. 4.9.0 also adds support for keywords in namespaced names. See https://github.com/nikic/PHP-Parser/releases So forcing regeneration of spl_iterators.stub.php failed. PECL extensions using gen_stub.php would also be affected by the same issue. ``` ext/spl/spl_iterators.stub.php public function __construct(Iterator $iterator, string $regex, int $mode = self::MATCH, int $flags = 0, int $preg_flags = 0) {} ``` Testing: I successfully regenerated stubs by setting forceRegeneration to true and running `touch **/*.stub.php; make`. The stubs did not change, as expected. Closes GH-6036
Diffstat (limited to 'build')
-rwxr-xr-xbuild/gen_stub.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/gen_stub.php b/build/gen_stub.php
index 0584ecc710..24e34430bd 100755
--- a/build/gen_stub.php
+++ b/build/gen_stub.php
@@ -1105,7 +1105,7 @@ function initPhpParser() {
}
$isInitialized = true;
- $version = "4.3.0";
+ $version = "4.9.0";
$phpParserDir = __DIR__ . "/PHP-Parser-$version";
if (!is_dir($phpParserDir)) {
installPhpParser($version, $phpParserDir);