From: Anatol Belski Date: Mon, 13 Jun 2016 13:46:28 +0000 (+0200) Subject: fix test portability X-Git-Tag: php-7.1.0alpha3~42^2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cca3eb7c8e3623f60f3e5019ef29f2eca55ab5d;p=php fix test portability --- 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--