From 1cca3eb7c8e3623f60f3e5019ef29f2eca55ab5d Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 13 Jun 2016 15:46:28 +0200 Subject: [PATCH] fix test portability --- ext/zlib/tests/gzfilegzreadfile.phpt | 2 +- ext/zlib/tests/gzreadgzwrite.phpt | 2 +- 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-- --FILE--