summaryrefslogtreecommitdiff
path: root/ext/imap/tests/bug75774.phpt
blob: 08883ad8f0ab56a67b2c535fea468e7ec43d635a (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
25
--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);

?>
--EXPECTF--
Warning: imap_append(): Internal date not correctly formatted in %s on line %d
imap_append(): supplied resource is not a valid imap resource