mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-25 03:29:01 +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';
|
||||
|
||||
@@ -67,6 +67,7 @@ server {
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
|
||||
fastcgi_param "PHP_CURL_CLASS_TEST_MODE_ENABLED" "yes";
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user