-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
explicitly cast content length to int (#79)
- Loading branch information
1 parent
d5aa289
commit f0b27a6
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ static function sendResponse(ResponseInterface $response) { | |
if (is_resource($body) && get_resource_type($body) == 'stream') { | ||
if (PHP_INT_SIZE !== 4){ | ||
// use the dedicated function on 64 Bit systems | ||
stream_copy_to_stream($body, $output, $contentLength); | ||
stream_copy_to_stream($body, $output, (int)$contentLength); | ||
} else { | ||
// workaround for 32 Bit systems to avoid stream_copy_to_stream | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
staabm
Member
|
||
while (!feof($body)) { | ||
|
Caution : Commit #74 breaks content range GETs support of iOs devices - especially it breaks html5 streaming video playback if the Dav server OS is 32bits.
Created issue #108