Annotation of embedaddon/php/ext/zlib/tests/reading_include_path.inc, revision 1.1

1.1     ! misho       1: <?php
        !             2: $thisTestDir = "zlibVariation.dir";
        !             3: mkdir($thisTestDir);
        !             4: chdir($thisTestDir);
        !             5: 
        !             6: //create the include directory structure
        !             7: $workingDir = "workdir";
        !             8: $filename = "afile.txt.gz";
        !             9: $scriptDir = dirname(__FILE__);
        !            10: $baseDir = getcwd();
        !            11: $secondFile = $baseDir."/dir2/".$filename;
        !            12: $firstFile = "../dir1/".$filename;
        !            13: $scriptFile = $scriptDir.'/'.$filename;
        !            14: 
        !            15: $newdirs = array("dir1", "dir2", "dir3");
        !            16: $pathSep = ":";
        !            17: $newIncludePath = "";
        !            18: if(substr(PHP_OS, 0, 3) == 'WIN' ) {
        !            19:    $pathSep = ";";
        !            20: }
        !            21: foreach($newdirs as $newdir) {
        !            22:    mkdir($newdir);
        !            23:    $newIncludePath .= '../'.$newdir.$pathSep;
        !            24: }
        !            25: mkdir($workingDir);
        !            26: chdir($workingDir);
        !            27: ?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>