diff options
author | ALeX Kazik <git@kazik.de> | 2013-01-18 17:13:39 +0100 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2013-01-28 22:37:43 -0800 |
commit | 475a644bd84c071da04b4272b829a187a2c6d282 (patch) | |
tree | 0fdffe041ec37fbacf13d56d9c9b842a0f17073c /tests | |
parent | a9d013bb020591cb6306afa2748da80f68b81f56 (diff) | |
download | php-git-475a644bd84c071da04b4272b829a187a2c6d282.tar.gz |
Implemented Feature #60524 (sys_temp_dir)
Added a new configuration directive which allows it to change the
temporary directory, the default behavior is unchanged.
This is a useful option if you use all/some hosts inside of one .ini file
with sections and want to change the temp dir per user (maybe it's not
allowed to write outside the users home directory). Since the TMPDIR
variable affects the whole php that way can not be used for this scenario.
(see https://bugs.php.net/bug.php?id=60524)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basic/req60524.phpt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/basic/req60524.phpt b/tests/basic/req60524.phpt new file mode 100644 index 0000000000..6803e1fd88 --- /dev/null +++ b/tests/basic/req60524.phpt @@ -0,0 +1,8 @@ +--TEST-- +Req #60524 (Specify temporary directory) +--INI-- +sys_temp_dir=/path/to/temp/dir +--FILE-- +<?php echo sys_get_temp_dir(); ?> +--EXPECT-- +/path/to/temp/dir |