summaryrefslogtreecommitdiff
path: root/sapi/cgi/tests/skipif.inc
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/cgi/tests/skipif.inc')
-rw-r--r--sapi/cgi/tests/skipif.inc17
1 files changed, 17 insertions, 0 deletions
diff --git a/sapi/cgi/tests/skipif.inc b/sapi/cgi/tests/skipif.inc
new file mode 100644
index 0000000..9da8b79
--- /dev/null
+++ b/sapi/cgi/tests/skipif.inc
@@ -0,0 +1,17 @@
+<?php
+
+if (substr(php_sapi_name(), 0, 3) == "cgi") {
+ exit;
+}
+
+if (substr(PHP_OS, 0, 3) == 'WIN') {
+ die ("skip not for Windows");
+}
+
+include dirname(__FILE__)."/include.inc";
+
+if (!get_cgi_path()) {
+ die("skip CGI not found");
+}
+
+?>