diff options
author | Remi Collet <remi@remirepo.net> | 2020-06-24 15:50:45 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-06-24 15:50:45 +0200 |
commit | 5338f97e2c42d49071fc8c177268b9dde4454828 (patch) | |
tree | 8a75261e5bf4addae131a2fbfc9f43841951a5af /php-8.0.0-parser.patch | |
parent | 2f82df5c853fc5ad7ac01a95f78d07f0b7f0c9ad (diff) |
use system nikic/php-parser if available to generate
C headers from PHP stub
switch from "runselftest" option to bcond_without tests
Diffstat (limited to 'php-8.0.0-parser.patch')
-rw-r--r-- | php-8.0.0-parser.patch | 14 |
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)) { |