We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd9d570 commit c36b2afCopy full SHA for c36b2af
tests/PHPCurlClass/server.php
@@ -1,6 +1,9 @@
1
<?php
2
// Prevent direct access unless testing.
3
-getenv('PHP_CURL_CLASS_TEST_MODE_ENABLED') === 'yes' || exit;
+if (getenv('PHP_CURL_CLASS_TEST_MODE_ENABLED') !== 'yes' &&
4
+ $_SERVER['PHP_CURL_CLASS_TEST_MODE_ENABLED'] !== 'yes') {
5
+ exit;
6
+}
7
8
require_once 'ContentRangeServer.php';
9
require_once 'RangeHeader.php';
tests/before_script.sh
@@ -67,6 +67,7 @@ server {
67
fastcgi_index index.php;
68
include fastcgi_params;
69
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
70
+ fastcgi_param "PHP_CURL_CLASS_TEST_MODE_ENABLED" "yes";
71
}
72
73
EOF
0 commit comments