mirror of
https://github.com/php/php-src.git
synced 2026-04-20 06:21:12 +02:00
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
23 lines
394 B
PHP
23 lines
394 B
PHP
--TEST--
|
|
Bug #75774 imap_append HeapCorruction
|
|
--EXTENSIONS--
|
|
imap
|
|
--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 IMAP\Connection, resource given
|