php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7368 levenshtein() miscalculations
Submitted: 2000-10-20 11:33 UTC Modified: 2000-12-13 18:45 UTC
From: hartmut at six dot de Assigned: hholzgra (profile)
Status: Closed Package: Strings related
PHP Version: 4.0.3pl1 OS: *
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: hartmut at six dot de
New email:
PHP Version: OS:

 

 [2000-10-20 11:33 UTC] hartmut at six dot de
for the strings "12345" and "13458", 

levenshtein("12345","13458") returns 3
levenshtein("12345","13458",1,1,1) returns 4

The correct answer is 2.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-13 18:45 UTC] hholzgra@php.net
fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 15 20:01:27 2024 UTC