com php-src: fix test portability: ext/zlib/tests/gzfilegzreadfile.phpt ext/zlib/tests/gzreadgzwrite.phpt ext/zlib/tests/gzreadgzwriteplain.phpt

From: Date: Mon, 13 Jun 2016 13:47:08 +0000
Subject: com php-src: fix test portability: ext/zlib/tests/gzfilegzreadfile.phpt ext/zlib/tests/gzreadgzwrite.phpt ext/zlib/tests/gzreadgzwriteplain.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92367@lists.php.net to get a copy of this message
Commit: 1cca3eb7c8e3623f60f3e5019ef29f2eca55ab5d Author: Anatol Belski <ab@php.net> Mon, 13 Jun 2016 15:46:28 +0200 Parents: a94d53d0d104ff217a4f8626996c4a9a1e3af188 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1cca3eb7c8e3623f60f3e5019ef29f2eca55ab5d Log: fix test portability Changed paths: M ext/zlib/tests/gzfilegzreadfile.phpt M ext/zlib/tests/gzreadgzwrite.phpt M ext/zlib/tests/gzreadgzwriteplain.phpt Diff: diff --git a/ext/zlib/tests/gzfilegzreadfile.phpt b/ext/zlib/tests/gzfilegzreadfile.phpt index 2d6843d..ef6378d 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 71d728b..d52f12a 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 6a752b6..7a5a502 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);

« previous php.cvs (#92367) next »