summaryrefslogtreecommitdiff
path: root/ext/ftp/tests/skipif.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ftp/tests/skipif.inc')
-rw-r--r--ext/ftp/tests/skipif.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/ftp/tests/skipif.inc b/ext/ftp/tests/skipif.inc
new file mode 100644
index 0000000..9ab6ad9
--- /dev/null
+++ b/ext/ftp/tests/skipif.inc
@@ -0,0 +1,5 @@
+<?php
+if (!extension_loaded('ftp')) die('skip ftp extension not loaded');
+if (!function_exists('pcntl_fork')) die('skip fork not available');
+if (!empty($ssl) && !extension_loaded('openssl')) die('skip openssl extension not loaded');
+?>