Skip to content

Commit cf40645

Browse files
committed
Sync mb_send_mail() signature with mail()
1 parent ff70f09 commit cf40645

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ext/mbstring/mbstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3496,7 +3496,7 @@ PHP_FUNCTION(mb_send_mail)
34963496
Z_PARAM_STRING(subject, subject_len)
34973497
Z_PARAM_STRING(message, message_len)
34983498
Z_PARAM_OPTIONAL
3499-
Z_PARAM_STR_OR_ARRAY_HT_OR_NULL(str_headers, headers_ht)
3499+
Z_PARAM_STR_OR_ARRAY_HT(str_headers, headers_ht)
35003500
Z_PARAM_STR_OR_NULL(extra_cmd)
35013501
ZEND_PARSE_PARAMETERS_END();
35023502

ext/mbstring/mbstring.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function mb_encode_numericentity(string $string, array $convmap, ?string $encodi
7777

7878
function mb_decode_numericentity(string $string, array $convmap, ?string $encoding = null): string {}
7979

80-
function mb_send_mail(string $to, string $subject, string $message, array|string|null $additional_headers = null, ?string $additional_parameters = null): bool {}
80+
function mb_send_mail(string $to, string $subject, string $message, array|string $additional_headers = [], ?string $additional_parameters = null): bool {}
8181

8282
function mb_get_info(string $type = "all"): array|string|int|false {}
8383

ext/mbstring/mbstring_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 84096daa0fd395f57401f11e9e79f7c8420e8a93 */
2+
* Stub hash: 442b9dc473714c91663fcd530214935ba74302e4 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_language, 0, 0, MAY_BE_STRING|MAY_BE_BOOL)
55
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, language, IS_STRING, 1, "null")
@@ -178,7 +178,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mb_send_mail, 0, 3, _IS_BOOL, 0)
178178
ZEND_ARG_TYPE_INFO(0, to, IS_STRING, 0)
179179
ZEND_ARG_TYPE_INFO(0, subject, IS_STRING, 0)
180180
ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
181-
ZEND_ARG_TYPE_MASK(0, additional_headers, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_NULL, "null")
181+
ZEND_ARG_TYPE_MASK(0, additional_headers, MAY_BE_ARRAY|MAY_BE_STRING, "[]")
182182
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, additional_parameters, IS_STRING, 1, "null")
183183
ZEND_END_ARG_INFO()
184184

0 commit comments

Comments
 (0)