mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Fix GH-11629: bug77020.phpt tries to send mail
Closes GH-11636.
This commit is contained in:
parent
15ff830373
commit
06d87e4c14
@ -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'
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user