From: travis at dreamsage dot com Operating system: Windows XP (linux untested) PHP version: 4.3.9 PHP Bug Type: Pspell related Bug description: metaphone function returns incorrect results
Description: ------------ Hello and thanks for taking the time to read this. You guys (and gals) are really appriciated. This bug has to do with the metaphone function. This function turns a word into string that represents the sound of the word. I was recently required to write a VB version of this function because none existed and so I translated the original Basic version of this function written around 1990. http://aspell.net/metaphone/metaphone-kuhn.txt I wanted to check my code so I compared about 10,000 words produced by my VB code to the output of PHP and I found 4 bugs in your code. The output of the PHP function does not match what the output of the above algotythm states. 1: Words with GH 2: words with MB. The B is silent at the end of a word "dumb" but not in the middle "camber" 3: words with GN 4 words with CIA Thanks Travis Apple Reproduce code: --------------- . Expected result: ---------------- . Actual result: -------------- . -- Edit bug report at http://bugs.php.net/?id=31188&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31188&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31188&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31188&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31188&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31188&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31188&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31188&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31188&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31188&r=support Expected behavior: http://bugs.php.net/fix.php?id=31188&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31188&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31188&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31188&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31188&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31188&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31188&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31188&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31188&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31188&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31188&r=mysqlcfg
