From: Felipe Pena Date: Wed, 18 Feb 2009 22:34:06 +0000 (+0000) Subject: - MFH: Fixed bug #47443 (metaphone('scratch') returns wrong result) X-Git-Tag: RELEASE_1_3_5~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cadaace16cb6a91085bd0ab34976b8c5dadcf86e;p=php - MFH: Fixed bug #47443 (metaphone('scratch') returns wrong result) --- diff --git a/ext/standard/metaphone.c b/ext/standard/metaphone.c index d3b1960b55..bf66a79b86 100644 --- a/ext/standard/metaphone.c +++ b/ext/standard/metaphone.c @@ -421,7 +421,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;