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
 [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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-13 18:45 UTC] hholzgra@php.net
fixed in CVS
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 06:01:27 2019 UTC