Skip to content

Commit 7dcb3cd

Browse files
author
Rui Hirokawa
committed
fixed argument number in mb_send_mail().
1 parent 659282b commit 7dcb3cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mbstring/mbstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2620,7 +2620,7 @@ PHP_FUNCTION(mb_send_mail)
26202620
#define PHP_MBSTR_MAIL_MIME_HEADER1 "Mime-Version: 1.0\nContent-Type: text/plain"
26212621
#define PHP_MBSTR_MAIL_MIME_HEADER2 "; charset="
26222622
#define PHP_MBSTR_MAIL_MIME_HEADER3 "\nContent-Transfer-Encoding: "
2623-
if (argc == 4) {
2623+
if (argc >= 4) {
26242624
convert_to_string_ex(argv[3]);
26252625
p = Z_STRVAL_PP(argv[3]);
26262626
n = Z_STRLEN_PP(argv[3]);

0 commit comments

Comments
 (0)