xref: /PHP-7.3/ext/imap/tests/bug75774.phpt (revision cecf734d)
1--TEST--
2Bug #75774 imap_append HeapCorruction
3--SKIPIF--
4<?php
5extension_loaded('imap') or die('skip imap extension not available in this build');
6?>
7--FILE--
8<?php
9
10$fn = __DIR__ . DIRECTORY_SEPARATOR . "foo75774";
11$var1=fopen($fn, "w");
12
13imap_append($var1, "", "", "", "");
14
15fclose($var1);
16unlink($fn);
17
18?>
19==DONE==
20--EXPECTF--
21Warning: imap_append(): internal date not correctly formatted in %s on line %d
22
23Warning: imap_append(): supplied resource is not a valid imap resource in %s on line %d
24==DONE==
25