xref: /PHP-8.2/ext/imap/tests/bug75774.phpt (revision 39131219)
1--TEST--
2Bug #75774 imap_append HeapCorruction
3--EXTENSIONS--
4imap
5--FILE--
6<?php
7
8$fn = __DIR__ . DIRECTORY_SEPARATOR . "foo75774";
9$var1 = fopen($fn, "w");
10
11try {
12    imap_append($var1, "", "", "", "");
13} catch (\TypeError $e) {
14    echo $e->getMessage() . "\n";
15}
16
17fclose($var1);
18unlink($fn);
19
20?>
21--EXPECT--
22imap_append(): Argument #1 ($imap) must be of type IMAP\Connection, resource given
23