1 diff -urbBN php-5.0.5.org/ext/mbstring/config.m4 php-5.0.5/ext/mbstring/config.m4
2 --- php-5.0.5.org/ext/mbstring/config.m4 2005-02-21 00:02:48.000000000 +0100
3 +++ php-5.0.5/ext/mbstring/config.m4 2005-10-28 08:39:45.000000000 +0200
10 AC_DEFUN([PHP_MBSTRING_ADD_SOURCES], [
12 AC_DEFUN([PHP_MBSTRING_SETUP_MBREGEX], [
13 if test "$PHP_MBREGEX" = "yes"; then
14 AC_CACHE_CHECK(for variable length prototypes and stdarg.h, cv_php_mbstring_stdarg, [
15 - AC_TRY_COMPILE([#include <stdarg.h>], [
24 int main() { return foo(10, "", 3.14); }
25 - ], [cv_php_mbstring_stdarg=yes], [cv_php_mbstring_stdarg=no])
26 + ], [cv_php_mbstring_stdarg=yes], [cv_php_mbstring_stdarg=no],
28 + dnl cross-compile needs something here
31 +cv_php_mbstring_stdarg=yes
34 +cv_php_mbstring_stdarg=no
41 AC_CHECK_HEADERS([stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h])
42 diff -urbBN php-5.0.5.org/ext/mbstring/libmbfl/mbfl/mbfilter.c php-5.0.5/ext/mbstring/libmbfl/mbfl/mbfilter.c
43 --- php-5.0.5.org/ext/mbstring/libmbfl/mbfl/mbfilter.c 2005-04-22 07:03:25.000000000 +0200
44 +++ php-5.0.5/ext/mbstring/libmbfl/mbfl/mbfilter.c 2005-11-05 06:46:40.000000000 +0100
49 - if (!qp_table[(c & 0xff)]) { /* ordinary characters */
50 + if (c <= 0x00ff && !qp_table[(c & 0xff)]) { /* ordinary characters */
51 mbfl_memory_device_output(c, &pe->tmpdev);
53 } else if (pe->status1 == 0 && c == 0x20) { /* repeat SPACE */