summaryrefslogtreecommitdiff
path: root/ext/xml/tests/skipif.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/xml/tests/skipif.inc')
-rw-r--r--ext/xml/tests/skipif.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/xml/tests/skipif.inc b/ext/xml/tests/skipif.inc
new file mode 100644
index 0000000..44898f3
--- /dev/null
+++ b/ext/xml/tests/skipif.inc
@@ -0,0 +1,10 @@
+<?php
+// DO NOT dl load extension
+//if (!extension_loaded("xml")) {
+// $dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so";
+// @dl("xml$dlext");
+//}
+if (!extension_loaded("xml")) {
+ die('skip xml extension not available');
+}
+?>