#34835 [Opn]: levenshtein with 3 parameters does not work as expected

From: Date: Wed, 12 Oct 2005 08:13:40 +0000
Subject: #34835 [Opn]: levenshtein with 3 parameters does not work as expected
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-86439@lists.php.net to get a copy of this message
ID: 34835 Updated by: tony2001@php.net Reported By: fdcxl at 163 dot com Status: Open -Bug Type: Program Execution +Bug Type: Feature/Change Request Operating System: Linux PHP Version: 5.0.5 New Comment: And the warning is: "Warning: levenshtein(): The general Levenshtein support is not there yet". Reclassified as feature request. Previous Comments: ------------------------------------------------------------------------ [2005-10-12 10:08:59] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34835&edit=1

« previous php.bugs (#86439) next »