From cadaace16cb6a91085bd0ab34976b8c5dadcf86e Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 18 Feb 2009 22:34:06 +0000 Subject: [PATCH] - MFH: Fixed bug #47443 (metaphone('scratch') returns wrong result) --- ext/standard/metaphone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1