xref: /PHP-8.3/ext/mbstring/tests/gh16229.phpt (revision d840200c)
1--TEST--
2GH-16229 (Address overflowed in ext/mbstring/mbstring.c:4613 #16229)
3--EXTENSIONS--
4mbstring
5--INI--
6sendmail_path={MAIL:{PWD}/mb_send_mail_gh16229.eml}
7mail.add_x_header=off
8--SKIPIF--
9<?php
10if (!function_exists("mb_send_mail") || !mb_language("japanese")) {
11    die("skip mb_send_mail() not available");
12}
13?>
14--FILE--
15<?php
16try {
17	$a = false;
18	mb_send_mail($a,$a,$a,$a,$a);
19} catch (Exception $e) {
20}
21?>
22--CLEAN--
23<?php
24@unlink(__DIR__ . "/mb_send_mail_gh16229.eml");
25?>
26--EXPECTF--
27