From: Felipe Pena Date: Wed, 18 Feb 2009 22:33:22 +0000 (+0000) Subject: - Fixed bug #47443 (metaphone('scratch') returns wrong result) X-Git-Tag: php-5.4.0alpha1~191^2~4239 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87a3fbe71664b4c3a1a76f71032180cc9ddaa244;p=php - Fixed bug #47443 (metaphone('scratch') returns wrong result) --- diff --git a/ext/standard/metaphone.c b/ext/standard/metaphone.c index 55f714108b..8c988c5b1f 100644 --- a/ext/standard/metaphone.c +++ b/ext/standard/metaphone.c @@ -420,7 +420,7 @@ static int metaphone(unsigned char *word, int word_len, long max_phonemes, char } else if (Next_Letter == 'H') { Phonize(TH); skip_letter++; - } else { + } else if (!(Next_Letter == 'C' && After_Next_Letter == 'H')) { Phonize('T'); } break;