php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #75963
Patch php7_upgrade revision 2018-02-15 00:04 UTC by andras dot iklody at circl dot lu
Patch DestinyCloudFist revision 2018-02-14 21:09 UTC by andras dot iklody at circl dot lu

Patch DestinyCloudFist for ssdeep Bug #75963

Patch version 2018-02-14 21:09 UTC

Return to Bug #75963 | Download this patch
Patch Revisions:

Developer: andras.iklody@circl.lu

diff --git a/ssdeep.c b/ssdeep.c
index 3cae212..bbe2c25 100644
--- a/ssdeep.c
+++ b/ssdeep.c
@@ -110,7 +110,7 @@ PHP_FUNCTION(ssdeep_fuzzy_hash) {
     if (0 != fuzzy_hash_buf((unsigned char *) to_hash, to_hash_len, hash)) {
         RETURN_FALSE;
     } else {
-        RETURN_STRING(hash, 0);
+        RETURN_STRING(hash);
     }
 }
 /* }}} */
@@ -129,7 +129,7 @@ PHP_FUNCTION(ssdeep_fuzzy_hash_filename) {
     if (0 != fuzzy_hash_filename(file_name, hash)) {
         RETURN_FALSE;
     } else {
-        RETURN_STRING(hash, 0);
+        RETURN_STRING(hash);
     }
 }
 /* }}} */
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 02:01:26 2019 UTC