Skip to content

Commit 0878dbd

Browse files
committed
Fix phpGH-11629: bug77020.phpt tries to send mail
1 parent bbe72f1 commit 0878dbd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/imap/tests/bug77020.phpt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
Bug #77020 (null pointer dereference in imap_mail)
33
--EXTENSIONS--
44
imap
5+
--INI--
6+
sendmail_path="echo >/dev/null"
57
--FILE--
68
<?php
9+
// For Windows, set it to a string of length HOST_NAME_LEN (256) so the mail is not actually sent
10+
ini_set("SMTP", str_repeat("A", 256));
11+
712
@imap_mail('1', 1, NULL);
813
echo 'done'
914
?>

0 commit comments

Comments
 (0)