diff options
| -rw-r--r-- | ext/zlib/tests/gzfilegzreadfile.phpt | 2 | ||||
| -rw-r--r-- | ext/zlib/tests/gzreadgzwrite.phpt | 2 | ||||
| -rw-r--r-- | ext/zlib/tests/gzreadgzwriteplain.phpt | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/zlib/tests/gzfilegzreadfile.phpt b/ext/zlib/tests/gzfilegzreadfile.phpt index 2d6843ddd4..ef6378de25 100644 --- a/ext/zlib/tests/gzfilegzreadfile.phpt +++ b/ext/zlib/tests/gzfilegzreadfile.phpt @@ -25,7 +25,7 @@ blah blah blah blah blah blah blah EOD; -$filename = tempnam("/tmp", "phpt"); +$filename = tempnam(sys_get_temp_dir(), "phpt"); $fp = gzopen($filename, "wb"); gzwrite($fp, $original); diff --git a/ext/zlib/tests/gzreadgzwrite.phpt b/ext/zlib/tests/gzreadgzwrite.phpt index 71d728b6ed..d52f12a4ac 100644 --- a/ext/zlib/tests/gzreadgzwrite.phpt +++ b/ext/zlib/tests/gzreadgzwrite.phpt @@ -6,7 +6,7 @@ if (!extension_loaded("zlib")) print "skip"; ?> --FILE-- <?php $original = str_repeat(b"hallo php",4096); -$filename = tempnam("/tmp", "phpt"); +$filename = tempnam(sys_get_temp_dir(), "phpt"); $fp = gzopen($filename, "wb"); gzwrite($fp, $original); diff --git a/ext/zlib/tests/gzreadgzwriteplain.phpt b/ext/zlib/tests/gzreadgzwriteplain.phpt index 6a752b6212..7a5a5025aa 100644 --- a/ext/zlib/tests/gzreadgzwriteplain.phpt +++ b/ext/zlib/tests/gzreadgzwriteplain.phpt @@ -6,7 +6,7 @@ if (!extension_loaded("zlib")) print "skip"; ?> --FILE-- <?php $original = str_repeat(b"hallo php",4096); -$filename = tempnam("/tmp", "phpt"); +$filename = tempnam(sys_get_temp_dir(), "phpt"); $fp = fopen($filename, "wb"); fwrite($fp, $original); |
