diff options
| author | Antony Dovgal <tony2001@php.net> | 2007-02-07 21:13:01 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2007-02-07 21:13:01 +0000 |
| commit | 323467f9c9b3eb194dd8bd29a6134ceba5b39ec7 (patch) | |
| tree | b4a3e2e1ece89e8124b39f890a651b0e49b6dd78 | |
| parent | ffe3e65ac0a720689b23fdfc5f3bf8fc38265cfc (diff) | |
| download | php-git-323467f9c9b3eb194dd8bd29a6134ceba5b39ec7.tar.gz | |
add test
| -rw-r--r-- | ext/standard/tests/file/bug40374.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/standard/tests/file/bug40374.phpt b/ext/standard/tests/file/bug40374.phpt new file mode 100644 index 0000000000..3382322bbd --- /dev/null +++ b/ext/standard/tests/file/bug40374.phpt @@ -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 |
