php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #34835 levenshtein with 3 parameters does not work as expected
Submitted: 2005-10-12 10:08 UTC Modified: 2016-12-30 23:11 UTC
From: fdcxl at 163 dot com Assigned:
Status: Open Package: Strings related
PHP Version: 5.0.5 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-10-12 10:08 UTC] fdcxl at 163 dot com
Description:
------------
levenshtein with 3 parameters does not work.
I have checked the soucecode, it treat the third parameter to be a callback function. While in the manual, it's supposed to be an integer.

Reproduce code:
---------------
levenshtein("abc", "abcd", 2);

Expected result:
----------------
2

Actual result:
--------------
Some warning message

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-12 10:13 UTC] tony2001@php.net
And the warning is: "Warning: levenshtein(): The general Levenshtein support is not there yet".
Reclassified as feature request.
 [2016-12-30 23:11 UTC] cmb@php.net
-Package: Feature/Change Request +Package: Strings related
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC