com php-src: PCRE is always available, PHP can't be built without it anyway so these checks makes no sense anymore: win32/sendmail.c
| From: | Kalle Sommer Nielsen | Date: | Fri, 24 Nov 2017 23:40:13 +0000 |
| Subject: | com php-src: PCRE is always available, PHP can't be built without it anyway so these checks makes no sense anymore: win32/sendmail.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100368@lists.php.net to get a copy of this message | ||
Commit: ffbe80122603ffc71adae16781c5ebb234a05403
Author: Kalle Sommer Nielsen <kalle@php.net> Sat, 25 Nov 2017 00:40:13 +0100
Parents: 828d8e635b8e9b62058b25666229f0a42022f7dc
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ffbe80122603ffc71adae16781c5ebb234a05403
Log:
PCRE is always available, PHP can't be built without it anyway so these checks makes no sense
anymore
Changed paths:
M win32/sendmail.c
Diff:
diff --git a/win32/sendmail.c b/win32/sendmail.c
index 78f4b4a..05629db 100644
--- a/win32/sendmail.c
+++ b/win32/sendmail.c
@@ -1,4 +1,4 @@
-/*
+/*
* PHP Sendmail for Windows.
*
* This file is rewriten specificly for PHPFI. Some functionality
@@ -36,10 +36,7 @@
#include "php_win32_globals.h"
-#if HAVE_PCRE || HAVE_BUNDLED_PCRE
#include "ext/pcre/php_pcre.h"
-#endif
-
#include "ext/standard/php_string.h"
#include "ext/date/php_date.h"
@@ -130,9 +127,6 @@ static char *ErrorMessages[] =
*/
static zend_string *php_win32_mail_trim_header(char *header)
{
-
-#if HAVE_PCRE || HAVE_BUNDLED_PCRE
-
zend_string *result, *result2;
zend_string *replace;
zend_string *regex;
@@ -170,10 +164,6 @@ static zend_string *php_win32_mail_trim_header(char *header)
zend_string_release(result);
return result2;
-#else
- /* In case we don't have PCRE support (for whatever reason....) simply do nothing and return
the unmodified header */
- return zend_string_init(header, strlen(header), 0);
-#endif
}
/*********************************************************************