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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Dec 22 06:01:30 2024 UTC