ID:               48011
 Updated by:       [email protected]
 Reported By:      joris at bonboa dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Strings related
 Operating System: Linux (Ubuntu)
 PHP Version:      5.2.3-1
 New Comment:

Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.




Previous Comments:
------------------------------------------------------------------------

[2009-04-18 13:31:13] joris at bonboa dot com

Here again, Ubuntu and PHP 5.2.3-1, same output (problem)

------------------------------------------------------------------------

[2009-04-18 13:29:09] joris at bonboa dot com

Here on a Linux box using PHP 5.2.6-1 same problem

------------------------------------------------------------------------

[2009-04-18 13:00:56] [email protected]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



------------------------------------------------------------------------

[2009-04-18 10:32:36] joris at bonboa dot com

My PHP version = 5.2.5

------------------------------------------------------------------------

[2009-04-18 10:22:24] joris at bonboa dot com

Description:
------------
Does de second variant of the levenshtein function actuall work?

The second output line I dig, but not the first.
Any idea?


Reproduce code:
---------------
---
>From manual page: function.levenshtein
---
        $i=0;
        $u=0;
        $d=0;
        
        $t1='Joris';
        $t2='oris';
        $l=levenshtein($t1,$t2,$i,$u,$d);
        echo $t1.'='.$t2.'   '.$l.':'.$i.':'.$u.':'.$d."\n";
        $l=levenshtein($t1,$t2);
        echo $t1.'='.$t2.'   '.$l."\n";


Expected result:
----------------
Joris=oris   1:0:0:1
Joris=oris   1


Actual result:
--------------
Joris=oris   0:0:0:0
Joris=oris   1



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48011&edit=1

Reply via email to