Skip to content

Commit

Permalink
Fix phpGH-11629: bug77020.phpt tries to send mail
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos committed Jul 8, 2023
1 parent bbe72f1 commit 0878dbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/imap/tests/bug77020.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
Bug #77020 (null pointer dereference in imap_mail)
--EXTENSIONS--
imap
--INI--
sendmail_path="echo >/dev/null"
--FILE--
<?php
// For Windows, set it to a string of length HOST_NAME_LEN (256) so the mail is not actually sent
ini_set("SMTP", str_repeat("A", 256));

@imap_mail('1', 1, NULL);
echo 'done'
?>
Expand Down

0 comments on commit 0878dbd

Please sign in to comment.