php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36470 levenshtein with 3 parameters does not work as expected
Submitted: 2006-02-21 09:18 UTC Modified: 2006-03-07 01:17 UTC
From: chen dot daqi at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.1.2 OS: Linux
Private report: No CVE-ID: None
 [2006-02-21 09:18 UTC] 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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-22 08:33 UTC] tony2001@php.net
Reclassified as docu problem.
 [2006-03-07 01:17 UTC] vrana@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 07 09:01:33 2025 UTC