xref: /PHP-8.2/ext/imap/tests/bug77020.phpt (revision 06d87e4c)
1--TEST--
2Bug #77020 (null pointer dereference in imap_mail)
3--EXTENSIONS--
4imap
5--INI--
6sendmail_path="echo >/dev/null"
7--FILE--
8<?php
9// For Windows, set it to a string of length HOST_NAME_LEN (256) so the mail is not actually sent
10ini_set("SMTP", str_repeat("A", 256));
11
12@imap_mail('1', 1, NULL);
13echo 'done'
14?>
15--EXPECTF--
16%Adone
17