mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-09 13:35:31 +00:00
Fix PHP 5.3 container test not completing successfully
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<?php
|
||||
// Prevent direct access unless testing.
|
||||
getenv('PHP_CURL_CLASS_TEST_MODE_ENABLED') === 'yes' || exit;
|
||||
if (getenv('PHP_CURL_CLASS_TEST_MODE_ENABLED') !== 'yes' &&
|
||||
$_SERVER['PHP_CURL_CLASS_TEST_MODE_ENABLED'] !== 'yes') {
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once 'ContentRangeServer.php';
|
||||
require_once 'RangeHeader.php';
|
||||
|
||||
Reference in New Issue
Block a user