Annotation of embedaddon/php/ext/standard/tests/file/bug40374.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #40374 (php_shutdown_temporary_directory() tries to free local value)
! 3: --FILE--
! 4: <?php
! 5:
! 6: $file = tempnam(sys_get_temp_dir(), "test_");
! 7: var_dump($file);
! 8: $fp = fopen($file, "wt");
! 9: fwrite($fp, "test");
! 10: fclose($fp);
! 11: unlink($file);
! 12:
! 13: echo "Done\n";
! 14: ?>
! 15: --EXPECTF--
! 16: string(%d) "%s"
! 17: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>