This commit is contained in:
Antony Dovgal 2007-02-07 21:13:01 +00:00
parent ffe3e65ac0
commit 323467f9c9

View File

@ -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