summaryrefslogtreecommitdiff
path: root/ext/mbstring/mbstring.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-09-14 11:52:33 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-09-14 11:52:33 +0200
commit1c81a3456372693dc4036fd7a3deb143cbb3aeef (patch)
tree4c1c833af9a900f1618668d9d15ec8bec4242a4b /ext/mbstring/mbstring.c
parenteb86d0812867833d4f9c8a82997cd54249549027 (diff)
downloadphp-git-1c81a3456372693dc4036fd7a3deb143cbb3aeef.tar.gz
Make mb_send_mail() consistent with mail()
The $additional_headers parameter shouldn't accept null.
Diffstat (limited to 'ext/mbstring/mbstring.c')
-rw-r--r--ext/mbstring/mbstring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index 1189270bec..58797eb244 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -3488,7 +3488,7 @@ PHP_FUNCTION(mb_send_mail)
Z_PARAM_PATH(subject, subject_len)
Z_PARAM_PATH(message, message_len)
Z_PARAM_OPTIONAL
- Z_PARAM_ARRAY_HT_OR_STR_OR_NULL(headers_ht, str_headers)
+ Z_PARAM_ARRAY_HT_OR_STR(headers_ht, str_headers)
Z_PARAM_PATH_STR_OR_NULL(extra_cmd)
ZEND_PARSE_PARAMETERS_END();