From ff033b4ed78262f6999ba329e149576ace36862d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 10 Oct 2019 15:30:41 +0200 Subject: add patch for PHP 7.4 --- php-sabre-http-php74.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 php-sabre-http-php74.patch (limited to 'php-sabre-http-php74.patch') diff --git a/php-sabre-http-php74.patch b/php-sabre-http-php74.patch new file mode 100644 index 0000000..38cfe2f --- /dev/null +++ b/php-sabre-http-php74.patch @@ -0,0 +1,27 @@ +Adapted for v4 from: + +From 987e14a077fca2d950bc9f555173fa7bb71c0096 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Wed, 11 Sep 2019 14:31:57 +0200 +Subject: [PATCH] fix "Trying to access array offset on value of type bool" in + 7.4 (#121) + +--- + lib/Auth/Digest.php | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/lib/Auth/Digest.php b/lib/Auth/Digest.php +index 23c28f8..dd35a0b 100644 +--- a/lib/Auth/Digest.php ++++ b/lib/Auth/Digest.php +@@ -135,6 +135,10 @@ + */ + protected function validate() { + ++ if (!is_array($this->digestParts)) { ++ return false; ++ } ++ + $A2 = $this->request->getMethod() . ':' . $this->digestParts['uri']; + + if ($this->digestParts['qop'] == 'auth-int') { -- cgit