summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/bug40374.phpt
blob: 327289eba26f71c4dc2b148421ef55d83345a9fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #40374 (php_shutdown_temporary_directory() tries to free local value) 
--FILE--
<?php

$file = tempnam(sys_get_temp_dir(), "test_");
var_dump($file);
$fp = fopen($file, "wt");
fwrite($fp, "test");
fclose($fp);
unlink($file);

echo "Done\n";
?>
--EXPECTF--	
string(%d) "%s"
Done