--- /dev/null
+Index: php-5.2.6/ext/standard/string.c
+===================================================================
+--- php-5.2.6.orig/ext/standard/string.c
++++ php-5.2.6/ext/standard/string.c
+@@ -592,14 +592,12 @@ PHP_FUNCTION(nl_langinfo)
+ #endif
+ #ifdef DECIMAL_POINT
+ case DECIMAL_POINT:
+-#endif
+-#ifdef RADIXCHAR
++#elif RADIXCHAR
+ case RADIXCHAR:
+ #endif
+ #ifdef THOUSANDS_SEP
+ case THOUSANDS_SEP:
+-#endif
+-#ifdef THOUSEP
++#elif THOUSEP
+ case THOUSEP:
+ #endif
+ #ifdef GROUPING
inherit autotools
-CFLAGS += " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED"
+CFLAGS += " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -D_GNU_SOURCE"
acpaths = ""
DEPENDS = "zlib libxml2 virtual/libiconv php-native lemon-native"
-PR = "r5"
+PR = "r6"
-SRC_URI += "file://pear-makefile.patch;patch=1 "
+SRC_URI += "file://pear-makefile.patch;patch=1 \
+ file://string.c.patch;patch=1 "
export THREADS="pthread"
export LIBS=" -lpthread "