summaryrefslogtreecommitdiffstats
path: root/5.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-11-19 09:00:21 +0100
committerRemi Collet <remi@remirepo.net>2019-11-19 09:00:21 +0100
commit7e5082e23b3c4517da6a07b1144da6015230e60c (patch)
tree846a4918bc2b9f0dfc2d639bc0538f342733e6cc /5.patch
parent89a12e2525e58e352371a1e270da4dd334ce597a (diff)
add upstream patches for PHP 7.4
Diffstat (limited to '5.patch')
-rw-r--r--5.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/5.patch b/5.patch
new file mode 100644
index 0000000..fdd688a
--- /dev/null
+++ b/5.patch
@@ -0,0 +1,22 @@
+From ed634fd44250abab4f6ad85ae7849d0811a3d128 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Mon, 18 Nov 2019 12:58:50 +0100
+Subject: [PATCH] fix phplint warnings
+
+---
+ Console/Getopt.php | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Console/Getopt.php b/Console/Getopt.php
+index 29f86bb..e5793bb 100644
+--- a/Console/Getopt.php
++++ b/Console/Getopt.php
+@@ -123,7 +123,7 @@ public static function doGetopt($version, $args, $short_options, $long_options =
+ * erroneous POSIX fix.
+ */
+ if ($version < 2) {
+- if (isset($args[0]{0}) && $args[0]{0} != '-') {
++ if (isset($args[0][0]) && $args[0][0] != '-') {
+ array_shift($args);
+ }
+ }