Bug #53455 [Opn->Bgs]: ssdee-_fuzzy_compare only returns 0

From: Date: Thu, 02 Dec 2010 21:29:54 +0000
Subject: Bug #53455 [Opn->Bgs]: ssdee-_fuzzy_compare only returns 0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156701@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53455&edit=1 ID: 53455 Updated by: johannes@php.net Reported by: islam dot sharabash at gmail dot com Summary: ssdee-_fuzzy_compare only returns 0 -Status: Open +Status: Bogus Type: Bug Package: *General Issues Operating System: Centos 5 PHP Version: 5.2.14 Block user comment: N Private report: N New Comment: please report bugs for PECL extensions on http://pecl.php.net, sorry if this is confusing. Previous Comments: ------------------------------------------------------------------------ [2010-12-02 21:49:55] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53455&edit=1

« previous php.bugs (#156701) next »