summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-05-06 02:10:06 +0200
committerPeter Kokot <peterkokot@gmail.com>2019-05-08 22:00:22 +0200
commit99b94fbb5c4fa622f7a57b754e98399930f53bf7 (patch)
tree8b40ecde8945049ae66dbebc063ec1c7dc113bee
parent71acd7a2f7ec59fb3aea16939f33ed3fcc7189c4 (diff)
downloadphp-git-99b94fbb5c4fa622f7a57b754e98399930f53bf7.tar.gz
Remove redundant example/test libsodium.php file
-rw-r--r--ext/sodium/libsodium.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/ext/sodium/libsodium.php b/ext/sodium/libsodium.php
deleted file mode 100644
index bb18faff19..0000000000
--- a/ext/sodium/libsodium.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-$br = (php_sapi_name() == "cli")? "":"<br>";
-
-if(!extension_loaded('libsodium')) {
- dl('libsodium.' . PHP_SHLIB_SUFFIX);
-}
-$module = 'libsodium';
-$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 = 'sodium_memzero';
-$exit = 0;
-if (extension_loaded($module)) {
- $str = $function($module);
-} else {
- $str = "Module $module is not compiled into PHP";
- $exit = 255;
-}
-echo "$str\n";
-exit($exit);
-?>