]> granicus.if.org Git - php/commitdiff
add test
authorAntony Dovgal <tony2001@php.net>
Wed, 7 Feb 2007 21:12:48 +0000 (21:12 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 7 Feb 2007 21:12:48 +0000 (21:12 +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..1213cbe
--- /dev/null
@@ -0,0 +1,20 @@
+--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) "/tmp/test_%s"
+Done
+--UEXPECTF--
+unicode(%d) "/tmp/test_%s"
+Done