Fix GH-11629: bug77020.phpt tries to send mail

Closes GH-11636.
This commit is contained in:
Niels Dossche 2023-07-08 17:49:54 +02:00
parent 15ff830373
commit 06d87e4c14

View File

@ -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'
?>