summaryrefslogtreecommitdiffstats
path: root/php-8.0.0-parser.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-8.0.0-parser.patch')
-rw-r--r--php-8.0.0-parser.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/php-8.0.0-parser.patch b/php-8.0.0-parser.patch
new file mode 100644
index 0000000..cb676e9
--- /dev/null
+++ b/php-8.0.0-parser.patch
@@ -0,0 +1,14 @@
+diff -up ./build/gen_stub.php.old ./build/gen_stub.php
+--- ./build/gen_stub.php.old 2020-06-24 15:29:13.503969177 +0200
++++ ./build/gen_stub.php 2020-06-24 15:29:17.627958935 +0200
+@@ -1055,6 +1055,10 @@ function installPhpParser(string $versio
+ }
+
+ function initPhpParser() {
++ if (file_exists('/usr/share/php/PhpParser4/autoload.php')) {
++ require_once '/usr/share/php/PhpParser4/autoload.php';
++ return;
++ }
+ $version = "4.3.0";
+ $phpParserDir = __DIR__ . "/PHP-Parser-$version";
+ if (!is_dir($phpParserDir)) {