mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
add test
This commit is contained in:
parent
ffe3e65ac0
commit
323467f9c9
17
ext/standard/tests/file/bug40374.phpt
Normal file
17
ext/standard/tests/file/bug40374.phpt
Normal 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
|
Loading…
Reference in New Issue
Block a user