ID: 36470 Updated by: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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