cvs: pecl /mailparse mailparse.c php_mailparse.h

From: Date: Sat, 08 Nov 2003 00:07:15 +0000
Subject: cvs: pecl /mailparse mailparse.c php_mailparse.h
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-523@lists.php.net to get a copy of this message
wez Fri Nov 7 19:07:15 2003 EDT Modified files: /pecl/mailparse mailparse.c php_mailparse.h Log: Fix for roaming headers in the mbstring extension Index: pecl/mailparse/mailparse.c diff -u pecl/mailparse/mailparse.c:1.40 pecl/mailparse/mailparse.c:1.41 --- pecl/mailparse/mailparse.c:1.40 Thu Jun 26 09:46:15 2003 +++ pecl/mailparse/mailparse.c Fri Nov 7 19:07:15 2003 @@ -15,7 +15,7 @@ | Author: Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: mailparse.c,v 1.40 2003/06/26 13:46:15 wez Exp $ */ +/* $Id: mailparse.c,v 1.41 2003/11/08 00:07:15 wez Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -34,8 +34,6 @@ #error The mailparse extension requires the mbstring extension! #endif -#include "ext/mbstring/mbfilter.h" - #define MAILPARSE_DECODE_NONE 0 /* include headers and leave section untouched */ #define MAILPARSE_DECODE_8BIT 1 /* decode body into 8-bit */ #define MAILPARSE_DECODE_NOHEADERS 2 /* don't include the headers */ @@ -655,7 +653,7 @@ { php_info_print_table_start(); php_info_print_table_header(2, "mailparse support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision: 1.40 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.41 $"); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); Index: pecl/mailparse/php_mailparse.h diff -u pecl/mailparse/php_mailparse.h:1.10 pecl/mailparse/php_mailparse.h:1.11 --- pecl/mailparse/php_mailparse.h:1.10 Sat Jan 4 06:55:59 2003 +++ pecl/mailparse/php_mailparse.h Fri Nov 7 19:07:15 2003 @@ -17,7 +17,7 @@ | the support routines for this extension were based upon. | +----------------------------------------------------------------------+ */ -/* $Id: php_mailparse.h,v 1.10 2003/01/04 11:55:59 mj Exp $ */ +/* $Id: php_mailparse.h,v 1.11 2003/11/08 00:07:15 wez Exp $ */ #ifndef PHP_MAILPARSE_H #define PHP_MAILPARSE_H @@ -76,8 +76,13 @@ PHP_FUNCTION(mailparse_mimemessage_remove); PHP_FUNCTION(mailparse_mimemessage_add_child); +/* PHP 4.3.4 moved the mbfilter header around */ +#if PHP_MAJOR_VERSION == 4 && ((PHP_MINOR_VERSION < 3) || (PHP_MINOR_VERSION == 3 && PHP_RELEASE_VERSION < 4)) +# include "ext/mbstring/mbfilter.h" +#else +# include "ext/mbstring/libmbfl/mbfl/mbfilter.h" +#endif -#include "ext/mbstring/mbfilter.h" #include "php_mailparse_rfc822.h" #include "php_mailparse_mime.h"

« previous php.pecl.cvs (#523) next »