From 5338f97e2c42d49071fc8c177268b9dde4454828 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 24 Jun 2020 15:50:45 +0200 Subject: use system nikic/php-parser if available to generate C headers from PHP stub switch from "runselftest" option to bcond_without tests --- php-8.0.0-parser.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 php-8.0.0-parser.patch (limited to 'php-8.0.0-parser.patch') 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)) { -- cgit