From 4632977d7e8b903a45ef697e9c9255401a7a7b21 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 21 Oct 2024 09:58:41 +0200 Subject: update to 1.2.7 fix out of sources tree using patch from https://github.com/awslabs/aws-crt-php/pull/117 --- awscrt-parser.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 awscrt-parser.patch (limited to 'awscrt-parser.patch') diff --git a/awscrt-parser.patch b/awscrt-parser.patch new file mode 100644 index 0000000..2670839 --- /dev/null +++ b/awscrt-parser.patch @@ -0,0 +1,16 @@ +diff -up ./gen_stub.php.old ./gen_stub.php +--- ./gen_stub.php.old 2024-10-21 07:42:09.285923573 +0200 ++++ ./gen_stub.php 2024-10-21 07:43:44.385591795 +0200 +@@ -1809,6 +1809,12 @@ function initPhpParser() { + } + + $isInitialized = true; ++ ++ if (file_exists('/usr/share/php/PhpParser4/autoload.php')) { ++ require_once '/usr/share/php/PhpParser4/autoload.php'; ++ return; ++ } ++ + $version = "4.9.0"; + $phpParserDir = __DIR__ . "/PHP-Parser-$version"; + if (!is_dir($phpParserDir)) { -- cgit