aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/http/lib
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-07-06 21:33:07 +0200
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-07-06 21:35:10 +0200
commit31d1a728544f7ae740463cd0d1f345544175fcd2 (patch)
treefdfd2b1908a87f6e1396046ee95307506c079172 /vendor/sabre/http/lib
parentf9a989fe1b0944b9b7d896b23544522fd42c4fd7 (diff)
downloadvolse-hubzilla-31d1a728544f7ae740463cd0d1f345544175fcd2.tar.gz
volse-hubzilla-31d1a728544f7ae740463cd0d1f345544175fcd2.tar.bz2
volse-hubzilla-31d1a728544f7ae740463cd0d1f345544175fcd2.zip
:arrow_up: Updating some PHP libraries.
htmlpurifier (v4.9.2 => v4.9.3) with bugfix for PHP7.1 sabre/http (4.2.2 => 4.2.3)
Diffstat (limited to 'vendor/sabre/http/lib')
-rw-r--r--vendor/sabre/http/lib/Sapi.php10
-rw-r--r--vendor/sabre/http/lib/Version.php2
2 files changed, 10 insertions, 2 deletions
diff --git a/vendor/sabre/http/lib/Sapi.php b/vendor/sabre/http/lib/Sapi.php
index 6c83c8719..6fc6452e4 100644
--- a/vendor/sabre/http/lib/Sapi.php
+++ b/vendor/sabre/http/lib/Sapi.php
@@ -75,7 +75,15 @@ class Sapi {
if ($contentLength !== null) {
$output = fopen('php://output', 'wb');
if (is_resource($body) && get_resource_type($body) == 'stream') {
- stream_copy_to_stream($body, $output, $contentLength);
+ if (PHP_INT_SIZE !== 4){
+ // use the dedicated function on 64 Bit systems
+ stream_copy_to_stream($body, $output, $contentLength);
+ } else {
+ // workaround for 32 Bit systems to avoid stream_copy_to_stream
+ while (!feof($body)) {
+ fwrite($output, fread($body, 8192));
+ }
+ }
} else {
fwrite($output, $body, $contentLength);
}
diff --git a/vendor/sabre/http/lib/Version.php b/vendor/sabre/http/lib/Version.php
index a5a427405..aeb080e93 100644
--- a/vendor/sabre/http/lib/Version.php
+++ b/vendor/sabre/http/lib/Version.php
@@ -14,6 +14,6 @@ class Version {
/**
* Full version number
*/
- const VERSION = '4.2.2';
+ const VERSION = '4.2.3';
}