com php-src: Bug fix for wrong regex in mail: win32/sendmail.c

From: Date: Thu, 15 Jan 2015 14:07:10 +0000
Subject: com php-src: Bug fix for wrong regex in mail: win32/sendmail.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84109@lists.php.net to get a copy of this message
Commit: 27efc2b2ce1b7b59939c276e26d4e31307d98b88 Author: matbech <mberchtold@gmail.com> Tue, 13 Jan 2015 12:53:00 +0100 Committer: Anatol Belski <ab@php.net> Thu, 15 Jan 2015 15:07:10 +0100 Parents: 989daeb5bb0d4efe39c42e98a2741c2f178bb411 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=27efc2b2ce1b7b59939c276e26d4e31307d98b88 Log: Bug fix for wrong regex in mail The wrong string PHP_WIN32_MAIL_UNIFY_REPLACE instead of PHP_WIN32_MAIL_UNIFY_PATTERN is used for the regex. Changed paths: M win32/sendmail.c Diff: diff --git a/win32/sendmail.c b/win32/sendmail.c index d97231c..cc2cc43 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -165,7 +165,7 @@ 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_REPLACE, sizeof(PHP_WIN32_MAIL_UNIFY_REPLACE)-1, 0); + 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);

« previous php.cvs (#84109) next »