php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53455 ssdee-_fuzzy_compare only returns 0
Submitted: 2010-12-02 21:49 UTC Modified: 2010-12-02 22:29 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: islam dot sharabash at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.14 OS: Centos 5
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: islam dot sharabash at gmail dot com
New email:
PHP Version: OS:

 

 [2010-12-02 21:49 UTC] islam dot sharabash at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.ssdeep-fuzzy-compare#Return Values
---


Test script:
---------------
<?php

$string = "blah";
echo "blah";
?><br><?
var_dump($wee = ssdeep_fuzzy_hash($string));
?><br><?
var_dump(ssdeep_fuzzy_compare($wee, $wee));

?>


Expected result:
----------------
blah
string(7) "3:2n:2n"
int(100)

Match of 100 is expected

Actual result:
--------------
blah
string(7) "3:2n:2n"
int(0) 

Match of 0 returned, no matter the input

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-02 22:29 UTC] johannes@php.net
-Status: Open +Status: Bogus
 [2010-12-02 22:29 UTC] johannes@php.net
please report bugs for PECL extensions on http://pecl.php.net, sorry if this is confusing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 09 02:00:03 2025 UTC