blob: dc6b2910b697b7d8e750802f74e8f955e3a7e83b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--TEST--
Bug #75774 imap_append HeapCorruction
--SKIPIF--
<?php
extension_loaded('imap') or die('skip imap extension not available in this build');
?>
--FILE--
<?php
$fn = __DIR__ . DIRECTORY_SEPARATOR . "foo75774";
$var1 = fopen($fn, "w");
try {
imap_append($var1, "", "", "", "");
} catch (\TypeError $e) {
echo $e->getMessage() . "\n";
}
fclose($var1);
unlink($fn);
?>
--EXPECT--
imap_append(): Argument #1 ($imap) must be of type IMAPConnection, resource given
|