php/php-4.3.9-metaphone.patch
jorton c64073fb1d * Mon Oct 15 2007 Joe Orton <jorton@redhat.com> 5.2.4-3
- correct pcre BR version (#333021)
- restore metaphone fix (#205714)
- add READMEs to php-cli
2007-10-16 12:59:20 +00:00

15 lines
438 B
Diff

https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=135828
--- php-4.3.9/ext/standard/metaphone.c.metaphone
+++ php-4.3.9/ext/standard/metaphone.c
@@ -152,7 +152,7 @@
(*phoned_word)[p_idx++] = c; \
}
/* Slap a null character on the end of the phoned word */
-#define End_Phoned_Word {(*phoned_word)[p_idx] = '\0';}
+#define End_Phoned_Word Phonize('\0')
/* How long is the phoned word? */
#define Phone_Len (p_idx)