mirror of
https://github.com/php/php-src.git
synced 2026-04-18 21:41:22 +02:00
25 lines
477 B
PHP
25 lines
477 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 (\TypeError $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
|
|
fclose($var1);
|
|
unlink($fn);
|
|
|
|
?>
|
|
--EXPECT--
|
|
imap_append(): Argument #1 ($imap) must be of type IMAPConnection, resource given
|