Fix PHP 5.3 container test not completing successfully

This commit is contained in:
Zach Borboa
2019-04-30 00:00:39 -07:00
parent bd9d570af4
commit c36b2af2b0
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -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';
+1
View File
@@ -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