Skip to content

Commit 06d87e4

Browse files
committed
Fix GH-11629: bug77020.phpt tries to send mail
Closes GH-11636.
1 parent 15ff830 commit 06d87e4

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)