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

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: Mon Dec 30 14:01:28 2024 UTC