mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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.
This commit is contained in:
parent
c02a5931f4
commit
397ee767fd
4 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue