mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-09 05:25:31 +00:00
Fix some errors caused by using strict types
This commit is contained in:
@@ -264,7 +264,7 @@ if ($test === 'http_basic_auth') {
|
||||
exit;
|
||||
} elseif ($test === 'download_file_size') {
|
||||
$bytes = isset($_GET['bytes']) ? $_GET['bytes'] : 1234;
|
||||
$str = str_repeat('.', $bytes);
|
||||
$str = str_repeat('.', (int) $bytes);
|
||||
header('Content-Type: application/octet-stream');
|
||||
header('Content-Length: ' . strlen($str));
|
||||
header('ETag: ' . md5($str));
|
||||
@@ -292,7 +292,7 @@ if ($test === 'http_basic_auth') {
|
||||
$dots_to_print = floor($elapsed) - $dots_printed;
|
||||
|
||||
if ($dots_to_print) {
|
||||
echo str_repeat('.', $dots_to_print);
|
||||
echo str_repeat('.', (int) $dots_to_print);
|
||||
$dots_printed += $dots_to_print;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user