Return to bug40374.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / file |
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