summaryrefslogtreecommitdiff
path: root/ext/skeleton/skeleton.php
diff options
context:
space:
mode:
Diffstat (limited to 'ext/skeleton/skeleton.php')
-rw-r--r--ext/skeleton/skeleton.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/skeleton/skeleton.php b/ext/skeleton/skeleton.php
new file mode 100644
index 0000000000..12e1e64bb4
--- /dev/null
+++ b/ext/skeleton/skeleton.php
@@ -0,0 +1,19 @@
+<?
+if(!extension_loaded('extname')) {
+ dl('extname.' . PHP_SHLIB_SUFFIX);
+}
+$module = 'extname';
+$functions = get_extension_funcs($module);
+echo "Functions available in the test extension:<br>\n";
+foreach($functions as $func) {
+ echo $func."<br>\n";
+}
+echo "<br>\n";
+$function = 'confirm_' . $module . '_compiled';
+if (extension_loaded($module)) {
+ $str = $function($module);
+} else {
+ $str = "Module $module is not compiled into PHP";
+}
+echo "$str\n";
+?>