php-src/ext/standard/tests/file/bug40374.phpt

18 lines
291 B
Plaintext
Raw Normal View History

2007-02-07 21:13:01 +00:00
--TEST--
Bug #40374 (php_shutdown_temporary_directory() tries to free local value)
--FILE--
<?php
$file = tempnam(sys_get_temp_dir(), "test_");
var_dump($file);
2007-11-05 17:43:21 +00:00
$fp = fopen($file, "wt");
2007-02-07 21:13:01 +00:00
fwrite($fp, "test");
fclose($fp);
unlink($file);
echo "Done\n";
?>
--EXPECTF--
2007-02-11 20:06:19 +00:00
string(%d) "%s"
2007-02-07 21:13:01 +00:00
Done