Req #34835 [Opn->Wfx]: levenshtein with 3 parameters does not work as expected

From: Date: Fri, 01 Jan 2021 16:15:53 +0000
Subject: Req #34835 [Opn->Wfx]: levenshtein with 3 parameters does not work as expected
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231323@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=34835&edit=1 ID: 34835 Updated by: cmb@php.net Reported by: fdcxl at 163 dot com Summary: levenshtein with 3 parameters does not work as expected -Status: Open +Status: Wont fix Type: Feature/Change Request Package: Strings related Operating System: Linux PHP Version: 5.0.5 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Support for callback parameters is completely removed as of PHP 8.0.0. Previous Comments: ------------------------------------------------------------------------ [2019-12-31 14:03:01] cmb@php.net Related To: Bug #79050 ------------------------------------------------------------------------ [2005-10-12 10:13:39] tony2001@php.net And the warning is: "Warning: levenshtein(): The general Levenshtein support is not there yet". Reclassified as feature request. ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=34835&edit=1

« previous php.bugs (#231323) next »