com php-src: Remove redundant example/test libsodium.php file: ext/sodium/libsodium.php
| From: | Peter Kokot | Date: | Wed, 08 May 2019 20:00:22 +0000 |
| Subject: | com php-src: Remove redundant example/test libsodium.php file: ext/sodium/libsodium.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106085@lists.php.net to get a copy of this message | ||
Commit: 99b94fbb5c4fa622f7a57b754e98399930f53bf7
Author: Peter Kokot <peterkokot@gmail.com> Mon, 6 May 2019 02:10:06 +0200
Parents: 71acd7a2f7ec59fb3aea16939f33ed3fcc7189c4
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=99b94fbb5c4fa622f7a57b754e98399930f53bf7
Log:
Remove redundant example/test libsodium.php file
Changed paths:
D ext/sodium/libsodium.php
Diff:
diff --git a/ext/sodium/libsodium.php b/ext/sodium/libsodium.php
deleted file mode 100644
index bb18faf..0000000
--- 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);
-?>