#36470 [Opn->Csd]: levenshtein with 3 parameters does not work as expected

From: Date: Tue, 07 Mar 2006 00:17:38 +0000
Subject: #36470 [Opn->Csd]: levenshtein with 3 parameters does not work as expected
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969372264@lists.php.net to get a copy of this message
ID: 36470 Updated by: vrana@php.net Reported By: chen dot daqi at gmail dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Linux PHP Version: 5.1.2 New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2006-02-22 08:33:11] tony2001@php.net Reclassified as docu problem. ------------------------------------------------------------------------ [2006-02-21 09:18:38] chen dot daqi at gmail dot com Description: ------------ Hi, levenshtein("abc", "abbc", 2) is valid according to PHP manual, but in fact it issues a warning and return -1. Reproduce code: --------------- <?php var_dump(levenshtein("abc", "abbc", 2)); ?> Expected result: ---------------- int(2) Actual result: -------------- Warning: levenshtein(): The general Levenshtein support is not there yet in lev.php on line 2 Warning: levenshtein(): Argument string(s) too long in lev.php on line 2 int(-1) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36470&edit=1

« previous php.doc (#969372264) next »