Skip to content

Commit

Permalink
Patch HTTP_Request2 to fix PHP 7.4 issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
th-h committed Aug 10, 2019
1 parent 32f1a95 commit 0d70945
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions bundled-libs/HTTP/Request2.php
Original file line number Diff line number Diff line change
Expand Up @@ -930,11 +930,6 @@ public function send()
if (empty($this->adapter)) {
$this->setAdapter($this->getConfig('adapter'));
}
// magic_quotes_runtime may break file uploads and chunked response
// processing; see bug #4543. Don't use ini_get() here; see bug #16440.
if ($magicQuotes = get_magic_quotes_runtime()) {
set_magic_quotes_runtime(false);
}
// force using single byte encoding if mbstring extension overloads
// strlen() and substr(); see bug #1781, bug #10605
if (extension_loaded('mbstring') && (2 & ini_get('mbstring.func_overload'))) {
Expand All @@ -947,9 +942,6 @@ public function send()
} catch (Exception $e) {
}
// cleanup in either case (poor man's "finally" clause)
if ($magicQuotes) {
set_magic_quotes_runtime(true);
}
if (!empty($oldEncoding)) {
mb_internal_encoding($oldEncoding);
}
Expand Down

0 comments on commit 0d70945

Please sign in to comment.