/PHP-7.4/ext/phar/tests/tar/ |
H A D | bug71317-duplicate-filename.phpt | 15 $tar->addFile('file1.txt', 'file1'); 16 $tar->addFile('file2.txt', 'file2'); 17 $tar->addFile('file3.txt', 'file3'); 18 $tar->addFile('file4.txt', 'file4'); 19 $tar->addFile('file5.txt', 'file5'); 20 $tar->addFile('file2.txt', 'file2a'); 29 $fileContent = file_get_contents($testDirectory . '/file2.txt'); 32 …throw new Exception(sprintf('Contents of file2.txt ("%s") is invalid, expected "%s"', $fileContent… 45 array_map('unlink', glob($testDirectory . "/*.txt"));
|
/PHP-7.4/ext/phar/tests/ |
H A D | phar_extract2.phpt | 16 $phar['file1.txt'] = 'hi'; 17 $phar['file2.txt'] = 'hi2'; 18 $phar['subdir/ectory/file.txt'] = 'hi3'; 42 @unlink($dir . 'file1.txt'); 43 @unlink($dir . 'file2.txt'); 44 @unlink($dir . 'subdir/ectory/file.txt'); 54 %sextract2%cfile1.txt 55 %sextract2%cfile2.txt 59 %sextract2%csubdir%cectory%cfile.txt
|
H A D | bug65414.phpt | 11 '.phar/injected-1.txt', 12 '/.phar/injected-2.txt', 13 '//.phar/injected-3.txt', 32 .phar/injected-1.txt:Cannot create any files in magic ".phar" directory 33 /.phar/injected-2.txt:Cannot create any files in magic ".phar" directory 34 ….phar/injected-3.txt:Entry //.phar/injected-3.txt does not exist and cannot be created: phar error…
|
H A D | bug69279a.phpt | 13 var_dump(strncmp(file_get_contents(__DIR__ . '/bug69279a/1.txt'), 'Lorem ipsum', 11)); 14 var_dump(strncmp(file_get_contents(__DIR__ . '/bug69279a/2.txt'), 'foo', 3)); 15 var_dump(strncmp(file_get_contents(__DIR__ . '/bug69279a/3.txt'), 'Lorem ipsum', 11)); 24 @unlink(__DIR__ . '/bug69279a/1.txt'); 25 @unlink(__DIR__ . '/bug69279a/2.txt'); 26 @unlink(__DIR__ . '/bug69279a/3.txt');
|
H A D | phar_dir_iterate.phpt | 13 $phar['top.txt'] = 'hi'; 14 $phar['sub/top.txt'] = 'there'; 15 $phar['another.file.txt'] = 'wowee'; 28 string(%d) "phar://%sphar_dir_iterate.phar.php%canother.file.txt" 29 string(%d) "phar://%sphar_dir_iterate.phar.php/sub%ctop.txt" 30 string(%d) "phar://%sphar_dir_iterate.phar.php%ctop.txt"
|
/PHP-7.4/tests/security/ |
H A D | open_basedir_error_log.phpt | 13 var_dump(ini_set("error_log", $initdir."/test/bad/bad.txt")); 14 var_dump(ini_set("error_log", $initdir."/test/bad.txt")); 15 var_dump(ini_set("error_log", $initdir."/bad.txt")); 16 var_dump(ini_set("error_log", $initdir."/test/ok/ok.txt")); 17 var_dump(ini_set("error_log", $initdir."/test/ok/ok.txt")); 34 Warning: ini_set(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the… 37 Warning: ini_set(): open_basedir restriction in effect. File(%s/test/bad.txt) is not within the all… 40 Warning: ini_set(): open_basedir restriction in effect. File(%s/bad.txt) is not within the allowed … 43 string(%d) "%s/test/ok/ok.txt"
|
H A D | open_basedir_unlink.phpt | 11 var_dump(unlink("../bad/bad.txt")); 12 var_dump(unlink(".././bad/bad.txt")); 13 var_dump(unlink("../bad/../bad/bad.txt")); 14 var_dump(unlink("./.././bad/bad.txt")); 15 var_dump(unlink($initdir."/test/bad/bad.txt")); 32 Warning: unlink(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allow… 35 Warning: unlink(): open_basedir restriction in effect. File(.././bad/bad.txt) is not within the all… 38 Warning: unlink(): open_basedir restriction in effect. File(../bad/../bad/bad.txt) is not within th… 41 Warning: unlink(): open_basedir restriction in effect. File(./.././bad/bad.txt) is not within the a… 44 Warning: unlink(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the …
|
H A D | open_basedir_error_log_variation.phpt | 13 var_dump(error_log("Hello World!", DESTINATION_IS_FILE, $initdir."/test/bad/bad.txt")); 14 var_dump(error_log("Hello World!", DESTINATION_IS_FILE, $initdir."/test/bad.txt")); 15 var_dump(error_log("Hello World!", DESTINATION_IS_FILE, $initdir."/bad.txt")); 16 var_dump(error_log("Hello World!", DESTINATION_IS_FILE, $initdir."/test/ok/ok.txt")); 33 Warning: error_log(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within t… 35 Warning: error_log(%s/test/bad/bad.txt): failed to open stream: %s in %s on line %d 38 Warning: error_log(): open_basedir restriction in effect. File(%s/test/bad.txt) is not within the a… 40 Warning: error_log(%s/test/bad.txt): failed to open stream: %s in %s on line %d 43 Warning: error_log(): open_basedir restriction in effect. File(%s/bad.txt) is not within the allowe… 45 Warning: error_log(%s/bad.txt): failed to open stream: %s in %s on line %d
|
/PHP-7.4/ext/zip/tests/ |
H A D | oo_addpattern.phpt | 20 touch($dirname . 'foo.txt'); 21 touch($dirname . 'bar.txt'); 29 if (!$zip->addPattern('/\.txt$/', $dir, $options)) { 37 "entry1.txt", 38 "baz/foo.txt", 39 "baz/bar.txt" 54 unlink($dirname . 'foo.txt'); 55 unlink($dirname . 'bar.txt');
|
H A D | oo_namelocate.phpt | 20 $zip->addFromString('entry1.txt', 'entry #1'); 21 $zip->addFromString('entry2.txt', 'entry #2'); 22 $zip->addFromString('dir/entry2d.txt', 'entry #2'); 34 var_dump($zip->locateName('entry1.txt')); 35 var_dump($zip->locateName('eNtry2.txt')); 36 var_dump($zip->locateName('eNtry2.txt', ZIPARCHIVE::FL_NOCASE)); 37 var_dump($zip->locateName('enTRy2d.txt', ZIPARCHIVE::FL_NOCASE|ZIPARCHIVE::FL_NODIR));
|
H A D | oo_getnameindex.phpt | 20 $zip->addFromString('entry1.txt', 'entry #1'); 21 $zip->addFromString('entry2.txt', 'entry #2'); 22 $zip->addFromString('dir/entry2d.txt', 'entry #2'); 43 string(10) "entry1.txt" 44 string(10) "entry2.txt" 45 string(15) "dir/entry2d.txt"
|
/PHP-7.4/ext/phar/tests/cache_list/files/ |
H A D | write.phar.inc | 9 echo $phar["test.txt"]->getContent(); 10 $phar["test.txt"] = "changed 12 echo $phar["test.txt"]->getContent(); 17 $phar['test.txt'] = "hi 19 $phar['test.txt']->setMetadata('hi');
|
H A D | write16.phar.inc | 9 var_dump(isset($p["test.txt"])); 10 unset($p["test.txt"]); 11 var_dump(isset($p["test.txt"])); 15 $phar['test.txt'] = "<?php __HALT"."_COMPILER();"; 16 $phar['test2.txt'] = "<?php __HALT"."_COMPILER();";
|
H A D | write19.phar.inc | 9 var_dump($p["test.txt"]->getMetadata()); 10 $p["test.txt"]->setMetadata("hi2"); 11 var_dump($p["test.txt"]->getMetadata()); 15 $phar['test.txt'] = "<?php __HALT"."_COMPILER();"; 16 $phar["test.txt"]->setMetadata("hi");
|
H A D | write20.phar.inc | 9 var_dump($p["test.txt"]->getMetadata()); 10 $p["test.txt"]->delMetadata(); 11 var_dump($p["test.txt"]->getMetadata()); 15 $phar['test.txt'] = "<?php __HALT"."_COMPILER();"; 16 $phar["test.txt"]->setMetadata("hi");
|
H A D | write22.phar.inc | 9 var_dump($p["test.txt"]->isCompressed()); 10 $p["test.txt"]->decompress(); 11 var_dump($p["test.txt"]->isCompressed()); 15 $phar['test.txt'] = "<?php __HALT"."_COMPILER();"; 16 $phar['test.txt']->compress(Phar::GZ);
|
H A D | write18.phar.inc | 9 echo decoct(fileperms("phar://" . __FILE__ . "/test.txt")),"\n"; 10 $p["test.txt"]->chmod(0444); 11 echo decoct(fileperms("phar://" . __FILE__ . "/test.txt")),"\n"; 15 $phar['test.txt'] = "<?php __HALT"."_COMPILER();"; 16 $phar["test.txt"]->chmod(0666);
|
H A D | write22.phar | 3 var_dump($p["test.txt"]->isCompressed()); 4 $p["test.txt"]->decompress(); 5 var_dump($p["test.txt"]->isCompressed()); 8 6test.txt���H���E���/�(P���p� �w��
|
H A D | write21.phar | 3 var_dump($p["test.txt"]->isCompressed()); 4 $p["test.txt"]->compress(Phar::GZ); 5 var_dump($p["test.txt"]->isCompressed()); 8 6test.txt{��H���E�<?php __HALT_COMPILER();u:ΰ�U��|ZM�̧�Є�…
|
H A D | write4.phar | 2 var_dump(file_exists("phar://" . __FILE__ . "/test.txt")); 4 Phar::mount("test.txt", "phar://" . __FILE__ . "/tobemounted"); 5 …dump(file_exists("phar://" . __FILE__ . "/test.txt"), file_get_contents("phar://" . __FILE__ . "/t…
|
H A D | write7.phar | 3 var_dump(file_exists("phar://" . __FILE__ . "/test.txt")); 4 $p->delete("test.txt"); 6 var_dump(file_exists("phar://" . __FILE__ . "/test.txt")); 9 6test.txt���Hzzo�hi
|
/PHP-7.4/ext/xmlwriter/tests/ |
H A D | bug79029.phpt | 11 $x[0]->openUri("bug79029_1.txt"); 15 $y->openUri("bug79029_2.txt"); 18 file_put_contents("bug79029_3.txt", "a"); 20 $z->open("bug79029_3.txt"); 26 @unlink("bug79029_1.txt"); 27 @unlink("bug79029_2.txt"); 28 @unlink("bug79029_3.txt");
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | pathinfo_basic2-win32.phpt | 27 'c:afile.txt', 68 string(9) "afile.txt" 69 string(3) "txt" 77 string(3) "txt" 99 string(3) "txt" 107 string(3) "txt" 171 string(9) "afile.txt" 172 string(3) "txt" 180 string(3) "txt" 187 string(3) "txt" [all …]
|
H A D | pathinfo_basic2.phpt | 27 'c:afile.txt', 28 '..\.\..\test\afile.txt', 71 string(3) "txt" 79 string(3) "txt" 101 string(3) "txt" 109 string(3) "txt" 173 string(11) "c:afile.txt" 174 string(3) "txt" 182 string(3) "txt" 189 string(3) "txt" [all …]
|
/PHP-7.4/ext/pcre/tests/ |
H A D | 007.phpt | 13 global $txt; 14 $txt[3] = "\xFF"; 19 $txt = "ola123"; 20 var_dump(preg_replace_callback('#.#u', 'evil', $txt)); 21 var_dump($txt); 24 var_dump(preg_replace_callback('#.#u', 'evil', $txt));
|