]> granicus.if.org Git - php/commitdiff
cleanup
authorAnatol Belski <ab@php.net>
Thu, 15 Jan 2015 14:16:25 +0000 (15:16 +0100)
committerAnatol Belski <ab@php.net>
Fri, 16 Jan 2015 10:40:14 +0000 (11:40 +0100)
win32/sendmail.c

index cc2cc43fa0501e38001a55ffe6bf0890bc6ffe02..0254d82ee907e32a5c305c7b79a999d533ebaa4f 100644 (file)
@@ -167,14 +167,12 @@ static zend_string *php_win32_mail_trim_header(char *header)
        ZVAL_STRINGL(&replace, PHP_WIN32_MAIL_UNIFY_REPLACE, strlen(PHP_WIN32_MAIL_UNIFY_REPLACE));
        regex = zend_string_init(PHP_WIN32_MAIL_UNIFY_PATTERN, sizeof(PHP_WIN32_MAIL_UNIFY_PATTERN)-1, 0);
 
-//zend_string *php_pcre_replace(zend_string *regex, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int limit, int *replace_count);
-
        result = php_pcre_replace(regex,
-                                                         header, (int)strlen(header),
-                                                         &replace,
-                                                         0,
-                                                         -1,
-                                                         NULL);
+                                 header, (int)strlen(header),
+                                 &replace,
+                                 0,
+                                 -1,
+                                 NULL);
 
        if (NULL == result) {
                zval_ptr_dtor(&replace);
@@ -186,11 +184,11 @@ static zend_string *php_win32_mail_trim_header(char *header)
        regex = zend_string_init(PHP_WIN32_MAIL_RMVDBL_PATTERN, sizeof(PHP_WIN32_MAIL_RMVDBL_PATTERN)-1, 0);
 
        result2 = php_pcre_replace(regex,
-                                                          result->val, (int)result->len,
-                                                          &replace,
-                                                         0,
-                                                         -1,
-                                                         NULL);
+                                  result->val, (int)result->len,
+                                  &replace,
+                                 0,
+                                 -1,
+                                 NULL);
        return result;
 #else
        /* In case we don't have PCRE support (for whatever reason...) simply do nothing and return the unmodified header */