From 8b9d1ef613f0b3497f2a3ee39d64b61b8dc1d645 Mon Sep 17 00:00:00 2001 From: Agustin Villalba Date: Tue, 28 Jul 2020 13:24:35 +0100 Subject: [PATCH 1/2] Fixes incompatibility with new version of dependency package pear/http_request2 2.4.0 --- XML/RPC2/Util/HTTPRequest.php | 1 - composer.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/XML/RPC2/Util/HTTPRequest.php b/XML/RPC2/Util/HTTPRequest.php index 74541e1..7ff1172 100644 --- a/XML/RPC2/Util/HTTPRequest.php +++ b/XML/RPC2/Util/HTTPRequest.php @@ -42,7 +42,6 @@ // dependencies {{{ require_once 'XML/RPC2/Exception.php'; require_once 'XML/RPC2/Client.php'; -require_once 'HTTP/Request2.php'; // }}} /** diff --git a/composer.json b/composer.json index 4713d04..e268bf3 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "require": { "php": ">=5.2.0", "pear/pear_exception": "^1.0.0", - "pear/http_request2": "^2.3.0" + "pear/http_request2": "^2.4.0" }, "require-dev": { "phpunit/phpunit": "*" From ac5a58a67b296b2210dba0561c5158c871a179f1 Mon Sep 17 00:00:00 2001 From: Agustin Villalba Date: Thu, 30 Jul 2020 15:23:43 +0100 Subject: [PATCH 2/2] Fixes incompatibility with new version of dependency package pear/http_request2 2.4.0 --- XML/RPC2/Util/HTTPRequest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/XML/RPC2/Util/HTTPRequest.php b/XML/RPC2/Util/HTTPRequest.php index 7ff1172..31a3a23 100644 --- a/XML/RPC2/Util/HTTPRequest.php +++ b/XML/RPC2/Util/HTTPRequest.php @@ -42,6 +42,9 @@ // dependencies {{{ require_once 'XML/RPC2/Exception.php'; require_once 'XML/RPC2/Client.php'; +if (!class_exists('HTTP_Request2', true)) { + require_once 'HTTP/Request2.php'; +} // }}} /**