File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ language: php
2
2
3
3
matrix :
4
4
allow_failures :
5
- - php : 5.3
6
5
- php : hhvm
7
6
- php : hhvm-nightly
8
7
- php : nightly
Original file line number Diff line number Diff line change 1
1
<?php
2
2
// Prevent direct access unless testing.
3
- getenv ('PHP_CURL_CLASS_TEST_MODE_ENABLED ' ) === 'yes ' || exit;
3
+ if (getenv ('PHP_CURL_CLASS_TEST_MODE_ENABLED ' ) !== 'yes ' &&
4
+ $ _SERVER ['PHP_CURL_CLASS_TEST_MODE_ENABLED ' ] !== 'yes ' ) {
5
+ exit ;
6
+ }
4
7
5
8
require_once 'ContentRangeServer.php ' ;
6
9
require_once 'RangeHeader.php ' ;
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ server {
67
67
fastcgi_index index.php;
68
68
include fastcgi_params;
69
69
fastcgi_param SCRIPT_FILENAME \$ document_root\$ fastcgi_script_name;
70
+ fastcgi_param "PHP_CURL_CLASS_TEST_MODE_ENABLED" "yes";
70
71
}
71
72
}
72
73
EOF
You can’t perform that action at this time.
0 commit comments