From: Peter Kokot Date: Mon, 6 May 2019 00:10:06 +0000 (+0200) Subject: Remove redundant example/test libsodium.php file X-Git-Tag: php-7.4.0alpha1~326 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99b94fbb5c4fa622f7a57b754e98399930f53bf7;p=php Remove redundant example/test libsodium.php file --- 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 @@ -"; - -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); -?>