summaryrefslogtreecommitdiff
path: root/vendor/thecodingmachine/safe/generated/ssdeep.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-12-10 05:22:37 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-12-10 05:22:37 +0000
commit0ef2dd7175248e1116a867e0a86579d9f6ca16eb (patch)
tree452fc6e3391544b209ea075d587935e7ab42e714 /vendor/thecodingmachine/safe/generated/ssdeep.php
parentf15db7b9610467aa29f6441361fdc4e6c90deaa1 (diff)
parent3860435cba19cf2cd9c86dcc5d8938198c6b6736 (diff)
Merge branch 'feature/alpine_3.21-and-php_8.4' into 'master'
Bump to Alpine 3.21 and PHP 8.4, raise the minimum to PHP 8.2 See merge request tt-rss/tt-rss!85
Diffstat (limited to 'vendor/thecodingmachine/safe/generated/ssdeep.php')
-rw-r--r--vendor/thecodingmachine/safe/generated/ssdeep.php70
1 files changed, 0 insertions, 70 deletions
diff --git a/vendor/thecodingmachine/safe/generated/ssdeep.php b/vendor/thecodingmachine/safe/generated/ssdeep.php
deleted file mode 100644
index 662fc9b94..000000000
--- a/vendor/thecodingmachine/safe/generated/ssdeep.php
+++ /dev/null
@@ -1,70 +0,0 @@
-<?php
-
-namespace Safe;
-
-use Safe\Exceptions\SsdeepException;
-
-/**
- * Calculates the match score between signature1
- * and signature2 using
- * context-triggered piecewise hashing, and returns the match
- * score.
- *
- * @param string $signature1 The first fuzzy hash signature string.
- * @param string $signature2 The second fuzzy hash signature string.
- * @return int Returns an integer from 0 to 100 on success, FALSE otherwise.
- * @throws SsdeepException
- *
- */
-function ssdeep_fuzzy_compare(string $signature1, string $signature2): int
-{
- error_clear_last();
- $result = \ssdeep_fuzzy_compare($signature1, $signature2);
- if ($result === false) {
- throw SsdeepException::createFromPhpError();
- }
- return $result;
-}
-
-
-/**
- * ssdeep_fuzzy_hash_filename calculates the hash
- * of the file specified by file_name using
- * context-triggered piecewise
- * hashing, and returns that hash.
- *
- * @param string $file_name The filename of the file to hash.
- * @return string Returns a string on success, FALSE otherwise.
- * @throws SsdeepException
- *
- */
-function ssdeep_fuzzy_hash_filename(string $file_name): string
-{
- error_clear_last();
- $result = \ssdeep_fuzzy_hash_filename($file_name);
- if ($result === false) {
- throw SsdeepException::createFromPhpError();
- }
- return $result;
-}
-
-
-/**
- * ssdeep_fuzzy_hash calculates the hash of
- * to_hash using
- * context-triggered piecewise hashing, and returns that hash.
- *
- * @param string $to_hash The input string.
- * @return string Returns a string on success, FALSE otherwise.
- * @throws SsdeepException
- *
- */
-function ssdeep_fuzzy_hash(string $to_hash): string
-{
- error_clear_last();
- $result = \ssdeep_fuzzy_hash($to_hash);
- if ($result === false) {
- throw SsdeepException::createFromPhpError();
- }
- return $result;
-}