com php-src: Make zlib include_path tests more robust : ext/zlib/tests/gzfile_variation15.phpt ext/zlib /tests/gzopen_variation4.phpt
ext/zlib/tests/readgzfile _variation15.phpt ext/zlib/tests/reading_include_ path.inc

From: Date: Wed, 10 Apr 2019 11:39:17 +0000
Subject: com php-src: Make zlib include_path tests more robust : ext/zlib/tests/gzfile_variation15.phpt ext/zlib /tests/gzopen_variation4.phpt
ext/zlib/tests/readgzfile _variation15.phpt ext/zlib/tests/reading_include_ path.inc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105619@lists.php.net to get a copy of this message
Commit: 397ee767fd87f240683fead2a768179624ee25f0 Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 10 Apr 2019 13:39:17 +0200 Parents: c02a5931f4ca7565a83454010a2cbc5d95be9e11 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=397ee767fd87f240683fead2a768179624ee25f0 Log: Make zlib include_path tests more robust One file is placed inside the script directory, we need to make sure it has a unique name as well. Changed paths: M ext/zlib/tests/gzfile_variation15.phpt M ext/zlib/tests/gzopen_variation4..phpt M ext/zlib/tests/readgzfile_variation15.phpt M ext/zlib/tests/reading_include_path.inc Diff: diff --git a/ext/zlib/tests/gzfile_variation15.phpt b/ext/zlib/tests/gzfile_variation15.phpt index 153f567..866348e 100644 --- a/ext/zlib/tests/gzfile_variation15.phpt +++ b/ext/zlib/tests/gzfile_variation15.phpt @@ -8,7 +8,7 @@ if (!extension_loaded("zlib")) { ?> --FILE-- <?php -$thisTestDir = 'gzfile_variation15.dir'; +$testName = 'gzfile_variation15'; require_once('reading_include_path.inc'); //define the files to go into these directories, create one in dir2 diff --git a/ext/zlib/tests/gzopen_variation4.phpt b/ext/zlib/tests/gzopen_variation4.phpt index baa9c71..1648b75 100644 --- a/ext/zlib/tests/gzopen_variation4.phpt +++ b/ext/zlib/tests/gzopen_variation4.phpt @@ -16,7 +16,7 @@ if (!extension_loaded("zlib")) { echo "*** Testing gzopen() : usage variation ***\n"; -$thisTestDir = 'gzopen_variation4.dir'; +$testName = 'gzopen_variation4'; require_once('reading_include_path.inc'); //define the files to go into these directories, create one in dir2 diff --git a/ext/zlib/tests/readgzfile_variation15.phpt b/ext/zlib/tests/readgzfile_variation15.phpt index 40773f7..48115c7 100644 --- a/ext/zlib/tests/readgzfile_variation15.phpt +++ b/ext/zlib/tests/readgzfile_variation15.phpt @@ -8,7 +8,7 @@ if (!extension_loaded("zlib")) { ?> --FILE-- <?php -$thisTestDir = 'readgzfile_variation15.dir'; +$testName = 'readgzfile_variation15'; require_once('reading_include_path.inc'); //define the files to go into these directories, create one in dir2 diff --git a/ext/zlib/tests/reading_include_path.inc b/ext/zlib/tests/reading_include_path.inc index b4dbbc2..99ac445 100644 --- a/ext/zlib/tests/reading_include_path.inc +++ b/ext/zlib/tests/reading_include_path.inc @@ -1,10 +1,11 @@ <?php +$thisTestDir = $testName . '.dir'; mkdir($thisTestDir); chdir($thisTestDir); //create the include directory structure $workingDir = "workdir"; -$filename = "afile.txt.gz"; +$filename = $testName . ".txt.gz"; $scriptDir = dirname(__FILE__); $baseDir = getcwd(); $secondFile = $baseDir."/dir2/".$filename;

« previous php.cvs (#105619) next »