summaryrefslogtreecommitdiffstats
path: root/awscrt-parser.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-10-21 09:58:41 +0200
committerRemi Collet <remi@php.net>2024-10-21 09:58:41 +0200
commit4632977d7e8b903a45ef697e9c9255401a7a7b21 (patch)
tree8212c9172f0a469091e0aed5a349f9a982315df5 /awscrt-parser.patch
parentf817d1867fa9ee67445fd90357d7723ecfd3f3b9 (diff)
update to 1.2.7HEADmaster
fix out of sources tree using patch from https://github.com/awslabs/aws-crt-php/pull/117
Diffstat (limited to 'awscrt-parser.patch')
-rw-r--r--awscrt-parser.patch16
1 files changed, 16 insertions, 0 deletions
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)) {