Home
last modified time | relevance | path

Searched refs:tar (Results 1 – 25 of 180) sorted by relevance

12345678

/PHP-8.1/ext/phar/tests/tar/
H A Dtar_001.phpt2 Phar: tar-based phar corrupted
9 $tar = new corrupter(__DIR__ . '/tar_001.phar.tar', 'none');
10 $tar->init();
11 $tar->addFile('tar_001.phpt', __FILE__);
12 $tar->close();
14 $tar = fopen('phar://' . __DIR__ . '/tar_001.phar.tar/tar_001.phpt', 'rb');
16 $phar = new Phar(__DIR__ . '/tar_001.phar.tar');
24 @unlink(__DIR__ . '/tar_001.phar.tar');
27 …: fopen(phar://%star_001.phar.tar/tar_001.phpt): Failed to open stream: phar error: "%star_001.pha…
28 phar error: "%star_001.phar.tar" is a corrupted tar file (truncated)
H A Dtar_002.phpt2 Phar: tar-based phar corrupted 2
11 $tar = new corrupter(__DIR__ . '/tar_002.phar.tar', 'none');
12 $tar->init();
13 $tar->addFile('tar_002.phpt', __FILE__);
14 $tar->close();
16 $tar = fopen('phar://' . __DIR__ . '/tar_002.phar.tar/tar_002.phpt', 'rb');
19 $phar = new Phar(__DIR__ . '/tar_002.phar.tar');
27 @unlink(__DIR__ . '/tar_002.phar.tar');
30 …: fopen(phar://%star_002.phar.tar/tar_002.phpt): Failed to open stream: phar error: "%star_002.pha…
31 phar error: "%star_002.phar.tar" is a corrupted tar file (truncated)
H A Dtar_003.phpt2 Phar: tar-based phar, valid 1
15 $tar = new tarmaker($fname, 'none');
16 $tar->init();
17 $tar->addFile('.phar/stub.php', "<?php // tar-based phar archive stub file\n__HALT_COMPILER();");
20 $tar->mkDir('internal/dir');
21 $tar->mkDir('dir');
22 $tar->close();
29 $tar = opendir($alias . '/');
38 closedir($tar);
42 $tar = opendir($alias . '/');
[all …]
H A Dtar_004.phpt2 Phar: tar-based phar, tar phar with stub, mapPhar()
13 $fname = __DIR__ . '/tar_004.phar.tar';
16 $tar = new tarmaker($fname, 'none');
17 $tar->init();
19 $tar->addFile('internal/file/here', "hi there!\n");
20 $tar->mkDir('internal/dir');
21 $tar->mkDir('dir');
22 $tar->addFile('.phar/stub.php', '<?php
27 $tar->close();
33 @unlink(__DIR__ . '/tar_004.phar.tar');
[all …]
H A Dtar_nostub.phpt2 Phar: tar-based phar, third-party tar with no stub, Phar->getStub()
11 $fname = __DIR__ . '/tar_nostub.phar.tar';
13 $fname2 = __DIR__ . '/tar_nostub.tar';
15 $tar = new tarmaker($fname, 'none');
16 $tar->init();
18 $tar->addFile('internal/file/here', "hi there!\n");
19 $tar->close();
40 @unlink(__DIR__ . '/tar_nostub.phar.tar');
41 @unlink(__DIR__ . '/tar_nostub.tar');
44 …stub.phar.tar/): Failed to open directory: '%star_nostub.phar.tar' is not a phar archive. Use Phar…
[all …]
H A Dbignames.phpt2 Phar: tar with huge filenames
9 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.tar';
10 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.tar';
11 $fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.3.tar';
12 $fname4 = __DIR__ . '/' . basename(__FILE__, '.php') . '.4.tar';
45 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.tar');
46 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.tar');
47 @unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.3.tar');
48 @unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.4.tar');
54 tar-based phar "%sbignames.3.tar" cannot be created, filename "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa…
[all …]
H A Dbug71317-duplicate-filename.phpt13 $tar = new tarmaker($testTarFilename, 'none');
14 $tar->init();
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');
21 $tar->close();
26 $tar = new PharData($fname);
[all …]
H A Dbadalias.phpt12 new Phar($e . "badalias$i.phar.tar");
19 …as "hi/thereaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..." in tar-based phar "%sbadalias1.phar.tar"
20 phar error: invalid alias "hi\there" in tar-based phar "%sbadalias2.phar.tar"
21 phar error: invalid alias "hi;there" in tar-based phar "%sbadalias3.phar.tar"
22 phar error: invalid alias "hi:there" in tar-based phar "%sbadalias4.phar.tar"
23 phar error: tar-based phar "%sbadalias5.phar.tar" has alias that is larger than 511 bytes, cannot p…
H A Drequire_hash.phpt2 Phar: tar-based phar, require_hash=1, no signature
12 $fname = __DIR__ . '/require_hash.phar.tar';
14 $fname2 = __DIR__ . '/require_hash.tar';
16 $tar = new tarmaker($fname, 'none');
17 $tar->init();
19 $tar->addFile('internal/file/here', "hi there!\n");
20 $tar->addFile('.phar/stub.php', "__HALT_COMPILER();");
21 $tar->close();
43 @unlink(__DIR__ . '/require_hash.phar.tar');
44 @unlink(__DIR__ . '/require_hash.tar');
[all …]
H A Dbignames_overflow.phpt2 Phar: tar with huge filenames, buffer overflow
9 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.tar';
10 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.tar';
13 include __DIR__ . '/files/make.dangerous.tar.php.inc';
15 $tar = new danger_tarmaker($fname, 'none');
16 $tar->init();
17 $tar->addFile(str_repeat('a', 101), 'hi');
18 $tar->addFile(str_repeat('a', 255), 'hi2');
19 $tar->close();
31 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.tar');
[all …]
H A Dtar_bz2.phpt2 Phar: tar-based phar, bzipped tar
15 $fname2 = __DIR__ . '/tar_bz2.phar.tar';
18 $tar = new tarmaker($fname, 'bz2');
19 $tar->init();
20 $tar->addFile('tar_004.php', '<?php var_dump(__FILE__);');
21 $tar->addFile('internal/file/here', "hi there!\n");
22 $tar->mkDir('internal/dir');
23 $tar->mkDir('dir');
24 $tar->addFile('.phar/stub.php', '<?php
32 $tar->close();
[all …]
H A Drename.phpt2 Phar: rename test tar-based
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar';
14 $tar = new tarmaker($fname, 'none');
15 $tar->init();
16 $tar->addFile('.phar/stub.php', "<?php
24 $tar->addFile($n, $file);
27 $tar->close();
37 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?>
42 …et_contents(phar://%srename.phar.tar/a): Failed to open stream: phar error: "a" is not a file in p…
H A Drename_dir.phpt2 Phar: rename_dir test tar-based
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar';
14 $tar = new tarmaker($fname, 'none');
15 $tar->init();
16 $tar->addFile('.phar/stub.php', "<?php
24 $tar->addFile($n, $file);
27 $tar->close();
37 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?>
42 …nts(phar://%srename_dir.phar.tar/a/x): Failed to open stream: phar error: "a/x" is not a file in p…
H A Dtar_makebz2.phpt2 Phar: tar-based phar, make new bzipped tar
11 $fname = __DIR__ . '/tar_makebz2.phar.tar';
12 $fname2 = __DIR__ . '/tar_makebz2.phar.tar.bz2';
13 $fname3 = __DIR__ . '/tar_makebz2_b.phar.tar.bz2';
30 @unlink(__DIR__ . '/tar_makebz2.phar.tar');
31 @unlink(__DIR__ . '/tar_makebz2.phar.tar.bz2');
32 @unlink(__DIR__ . '/tar_makebz2_b.phar.tar.bz2');
H A Dtar_makegz.phpt2 Phar: tar-based phar, make new gzipped tar
11 $fname = __DIR__ . '/tar_makegz.phar.tar';
12 $fname2 = __DIR__ . '/tar_makegz.phar.tar.gz';
13 $fname3 = __DIR__ . '/tar_makegz_b.phar.tar.gz';
31 @unlink(__DIR__ . '/tar_makegz.phar.tar');
32 @unlink(__DIR__ . '/tar_makegz.phar.tar.gz');
33 @unlink(__DIR__ . '/tar_makegz_b.phar.tar.gz');
H A Drmdir.phpt2 Phar: rmdir test tar-based
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar';
14 $tar = new tarmaker($fname, 'none');
15 $tar->init();
16 $tar->addFile('.phar/stub.php', "<?php
24 $tar->addFile($n, $file);
26 $tar->mkdir('a');
28 $tar->close();
39 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?>
H A Dalias_acrobatics.phpt10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar';
11 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.tar';
37 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
38 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.tar');
41 …ady used for archive "%salias_acrobatics.phar.tar" cannot be overloaded with "%salias_acrobatics.2…
43 phar error: Unable to add tar-based phar "%salias_acrobatics.2.phar.tar", alias is already in use
44 …eady used for archive "%salias_acrobatics.phar.tar" cannot be overloaded with "%salias_acrobatics.…
H A Dtruncated.phpt2 Phar: truncated tar
8 $p = new PharData(__DIR__ . '/files/trunc.tar');
16 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
20 phar error: "%strunc.tar" is a corrupted tar file (truncated)
H A Drefcount1.phpt2 Phar: test that refcounting avoids problems with deleting a file tar-based
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar';
14 $tar = new tarmaker($fname, 'none');
15 $tar->init();
16 $tar->addFile('.phar/stub.php', "<?php __HALT_COMPILER(); ?>");
26 $tar->addFile($n, $file);
29 $tar->close();
50 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?>
55 string(%d) "phar://%srefcount1.phar.tar/b/c.php"
62 Warning: unlink(): phar error: "b/c.php" in phar "%srefcount1.phar.tar", has open file pointers, ca…
[all …]
H A Dcreate_new_phar_b.phpt2 Phar: create a completely new tar-based phar
11 file_put_contents('phar://' . __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar/a.php',
13 include 'phar://' . __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar/a.php';
17 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?>
19 Warning: file_put_contents(phar://%screate_new_phar_b.phar.tar/a.php): Failed to open stream: phar …
21 Warning: include(phar://%screate_new_phar_b.phar.tar/a.php): Failed to open stream: %s in %screate_…
23 Warning: include(): Failed opening 'phar://%screate_new_phar_b.phar.tar/a.php' for inclusion (inclu…
/PHP-8.1/scripts/dev/
H A Dmakedist9 tar="$(which gtar)"
10 tar="${tar:-$(which tar)}"
27 Creates PHP release packages (tar.gz, tar.bz2, tar.xz) from the php-src Git
136 git archive --format=tar $remote_option --prefix=$prefix/ $treeish | "$tar" xvf - || exit 4
178 "$tar" cf "$prefix".tar "$prefix"
183 md5sum "$prefix".tar.gz
184 gzip -t "$prefix".tar.gz
191 md5sum $prefix.tar.bz2
192 bzip2 -t $prefix.tar.bz2
199 md5sum "$prefix".tar.xz
[all …]
/PHP-8.1/ext/phar/tests/
H A Dphar_isvalidpharfilename.phpt19 echo "\nboo.tar\n";
20 var_dump(Phar::isValidPharFilename('boo.tar'));
24 echo "\nboo.phar.tar\n";
25 var_dump(Phar::isValidPharFilename('boo.phar.tar'));
31 echo "\n.phar/boo.tar\n";
36 echo "\n.phar.tar\n";
37 var_dump(Phar::isValidPharFilename('.phar.tar'));
86 boo.tar
91 boo.phar.tar
96 .phar/boo.tar
[all …]
H A Dbug71391.phpt7 // duplicate since the tar will change
8 copy(__DIR__."/bug71391.tar", __DIR__."/bug71391.test.tar");
9 $p = new PharData(__DIR__."/bug71391.test.tar");
15 unlink(__DIR__."/bug71391.test.tar");
H A Dbug77322.phpt11 $tar = new PharData(__DIR__ . '/bug77322.tar');
12 $tar->addEmptyDir('/');
13 var_dump($tar->count());
21 unlink(__DIR__ . '/bug77322.tar');
H A Dzf_test.phpt15 $phar_file = __DIR__ . "/$file.phar.tar.gz";
40 unlink(__DIR__ . '/zfapp.phar.tar.gz');
43 phar://%szfapp.phar.tar.gz/application/default/controllers/ErrorController.php
44 phar://%szfapp.phar.tar.gz/application/default/controllers/IndexController.php
45 phar://%szfapp.phar.tar.gz/application/default/views/scripts/error/error.phtml
46 phar://%szfapp.phar.tar.gz/application/default/views/scripts/index/index.phtml
47 phar://%szfapp.phar.tar.gz/html/.htaccess
48 phar://%szfapp.phar.tar.gz/html/index.php

Completed in 26 milliseconds

12345678