#34835 [NEW]: levenshtein with 3 parameters does not work as expected
| From: | fdcxl at 163 dot com | Date: | Wed, 12 Oct 2005 08:09:00 +0000 |
| Subject: | #34835 [NEW]: levenshtein with 3 parameters does not work as expected | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-86438@lists.php.net to get a copy of this message | ||
From: fdcxl at 163 dot com
Operating system: Linux
PHP version: 5.0.5
PHP Bug Type: Program Execution
Bug description: levenshtein with 3 parameters does not work as expected
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 bug report at http://bugs.php.net/?id=34835&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34835&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34835&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34835&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34835&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34835&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34835&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34835&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34835&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34835&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34835&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34835&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34835&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34835&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34835&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34835&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34835&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34835&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34835&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34835&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34835&r=mysqlcfg