mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 12:14:36 +00:00
Fix PHP 5.3 syntax error (unexpected T_OBJECT_OPERATOR)
This commit is contained in:
@@ -262,7 +262,8 @@ if ($test === 'http_basic_auth') {
|
||||
exit;
|
||||
} elseif ($test === 'download_file_range') {
|
||||
$unsafe_file_path = $_GET['file_path'];
|
||||
(new ContentRangeServer\ContentRangeServer())->serve($unsafe_file_path);
|
||||
$server = new ContentRangeServer\ContentRangeServer();
|
||||
$server->serve($unsafe_file_path);
|
||||
exit;
|
||||
} elseif ($test === 'timeout') {
|
||||
$unsafe_seconds = $_GET['seconds'];
|
||||
|
||||
Reference in New Issue
Block a user