1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00
Files
archived-php-src/ext/imap/tests/bug75774.phpt
2020-02-03 22:52:20 +01:00

27 lines
564 B
PHP

--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 (Throwable $e) {
echo "\nException: " . $e->getMessage() . "\n";
}
fclose($var1);
unlink($fn);
?>
--EXPECTF--
Warning: imap_append(): Internal date not correctly formatted in %s on line %d
Exception: imap_append(): Supplied resource is not a valid imap resource