PHP 4.0 Bug #7368: levenshtein() miscalculations
| From: | hartmut at six dot de | Date: | Fri, 20 Oct 2000 15:33:42 +0000 |
| Subject: | PHP 4.0 Bug #7368: levenshtein() miscalculations | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35664@lists.php.net to get a copy of this message | ||
From: hartmut@six.de
Operating system: *
PHP version: 4.0.3pl1
PHP Bug Type: Strings related
Bug description: levenshtein() miscalculations
for the strings "12345" and "13458",
levenshtein("12345","13458") returns 3
levenshtein("12345","13458",1,1,1) returns 4
The correct answer is 2.
--
Edit Bug report at: http://bugs.php.net/?id=7368&edit=1