Skip to content

Commit fe0160b

Browse files
committed
fix: add missing parameter to php_preg_replace calls
Two calls to php_preg_replace in win32/sendmail.c were missing the final parameter. Add 0 as the count parameter to fix the function calls.
1 parent 6c9399e commit fe0160b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

win32/sendmail.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ static zend_string *php_win32_mail_trim_header(const char *header)
147147
NULL, header, strlen(header),
148148
replace,
149149
-1,
150-
NULL);
150+
NULL,
151+
0);
151152

152153
zend_string_release_ex(replace, 0);
153154
zend_string_release_ex(regex, 0);
@@ -163,7 +164,8 @@ static zend_string *php_win32_mail_trim_header(const char *header)
163164
result, ZSTR_VAL(result), ZSTR_LEN(result),
164165
replace,
165166
-1,
166-
NULL);
167+
NULL,
168+
0);
167169
zend_string_release_ex(replace, 0);
168170
zend_string_release_ex(regex, 0);
169171
zend_string_release_ex(result, 0);

0 commit comments

Comments
 (0)