]> granicus.if.org Git - php/commitdiff
add test
authorAntony Dovgal <tony2001@php.net>
Wed, 7 Feb 2007 21:13:01 +0000 (21:13 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 7 Feb 2007 21:13:01 +0000 (21:13 +0000)
ext/standard/tests/file/bug40374.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/file/bug40374.phpt b/ext/standard/tests/file/bug40374.phpt
new file mode 100644 (file)
index 0000000..3382322
--- /dev/null
@@ -0,0 +1,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, "w");
+fwrite($fp, "test");
+fclose($fp);
+unlink($file);
+
+echo "Done\n";
+?>
+--EXPECTF--    
+string(%d) "/tmp/test_%s"
+Done