xref: /PHP-8.0/ext/standard/tests/file/bug40374.phpt (revision 782352c5)
1--TEST--
2Bug #40374 (php_shutdown_temporary_directory() tries to free local value)
3--FILE--
4<?php
5
6$file = tempnam(sys_get_temp_dir(), "test_");
7var_dump($file);
8$fp = fopen($file, "wt");
9fwrite($fp, "test");
10fclose($fp);
11unlink($file);
12
13echo "Done\n";
14?>
15--EXPECTF--
16string(%d) "%s"
17Done
18