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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 08:01:30 2024 UTC