/PHP-7.3/ext/phar/tests/tar/ |
H A D | tar_003.phpt | 2 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 D | tar_001.phpt | 2 Phar: tar-based phar corrupted 9 $tar = new corrupter(dirname(__FILE__) . '/tar_001.phar.tar', 'none'); 10 $tar->init(); 11 $tar->addFile('tar_001.phpt', __FILE__); 12 $tar->close(); 14 $tar = fopen('phar://' . dirname(__FILE__) . '/tar_001.phar.tar/tar_001.phpt', 'rb'); 16 $phar = new Phar(dirname(__FILE__) . '/tar_001.phar.tar'); 25 @unlink(dirname(__FILE__) . '/tar_001.phar.tar'); 28 …: fopen(phar://%star_001.phar.tar/tar_001.phpt): failed to open stream: phar error: "%star_001.pha… 29 phar error: "%star_001.phar.tar" is a corrupted tar file (truncated)
|
H A D | tar_002.phpt | 2 Phar: tar-based phar corrupted 2 11 $tar = new corrupter(dirname(__FILE__) . '/tar_002.phar.tar', 'none'); 12 $tar->init(); 13 $tar->addFile('tar_002.phpt', __FILE__); 14 $tar->close(); 16 $tar = fopen('phar://' . dirname(__FILE__) . '/tar_002.phar.tar/tar_002.phpt', 'rb'); 19 $phar = new Phar(dirname(__FILE__) . '/tar_002.phar.tar'); 28 @unlink(dirname(__FILE__) . '/tar_002.phar.tar'); 31 …: fopen(phar://%star_002.phar.tar/tar_002.phpt): failed to open stream: phar error: "%star_002.pha… 32 phar error: "%star_002.phar.tar" is a corrupted tar file (truncated)
|
H A D | tar_004.phpt | 2 Phar: tar-based phar, tar phar with stub, mapPhar() 14 $fname = dirname(__FILE__) . '/tar_004.phar.tar'; 17 $tar = new tarmaker($fname, 'none'); 18 $tar->init(); 20 $tar->addFile('internal/file/here', "hi there!\n"); 21 $tar->mkDir('internal/dir'); 22 $tar->mkDir('dir'); 23 $tar->addFile('.phar/stub.php', '<?php 28 $tar->close(); 35 @unlink(dirname(__FILE__) . '/tar_004.phar.tar'); [all …]
|
H A D | tar_nostub.phpt | 2 Phar: tar-based phar, third-party tar with no stub, Phar->getStub() 11 $fname = dirname(__FILE__) . '/tar_004.phar.tar'; 13 $fname2 = dirname(__FILE__) . '/tar_004.tar'; 15 $tar = new tarmaker($fname, 'none'); 16 $tar->init(); 18 $tar->addFile('internal/file/here', "hi there!\n"); 19 $tar->close(); 41 @unlink(dirname(__FILE__) . '/tar_004.phar.tar'); 42 @unlink(dirname(__FILE__) . '/tar_004.tar'); 45 …star_004.phar.tar/): failed to open dir: '%star_004.phar.tar' is not a phar archive. Use PharData:… [all …]
|
H A D | bug71317-duplicate-filename.phpt | 2 Bug #71317: regression in opening tar based phar files 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 D | bignames.phpt | 2 Phar: tar with huge filenames 9 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.tar'; 10 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.2.tar'; 11 $fname3 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.3.tar'; 12 $fname4 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.4.tar'; 46 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.tar'); 47 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.tar'); 48 @unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.3.tar'); 49 @unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.4.tar'); 55 tar-based phar "%sbignames.3.tar" cannot be created, filename "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa… [all …]
|
H A D | bignames_overflow.phpt | 2 Phar: tar with huge filenames, buffer overflow 9 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.tar'; 10 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.2.tar'; 13 include dirname(__FILE__) . '/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(); 32 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.tar'); [all …]
|
H A D | require_hash.phpt | 2 Phar: tar-based phar, require_hash=1, no signature 12 $fname = dirname(__FILE__) . '/tar_004.phar.tar'; 14 $fname2 = dirname(__FILE__) . '/tar_004.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(); 44 @unlink(dirname(__FILE__) . '/tar_004.phar.tar'); 45 @unlink(dirname(__FILE__) . '/tar_004.tar'); [all …]
|
H A D | badalias.phpt | 12 new Phar($e . "badalias$i.phar.tar"); 20 …as "hi/thereaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..." in tar-based phar "%sbadalias1.phar.tar" 21 phar error: invalid alias "hi\there" in tar-based phar "%sbadalias2.phar.tar" 22 phar error: invalid alias "hi;there" in tar-based phar "%sbadalias3.phar.tar" 23 phar error: invalid alias "hi:there" in tar-based phar "%sbadalias4.phar.tar" 24 phar error: tar-based phar "%sbadalias5.phar.tar" has alias that is larger than 511 bytes, cannot p…
|
H A D | tar_bz2.phpt | 2 Phar: tar-based phar, bzipped tar 17 $fname2 = dirname(__FILE__) . '/tar_bz2.phar.tar'; 20 $tar = new tarmaker($fname, 'bz2'); 21 $tar->init(); 22 $tar->addFile('tar_004.php', '<?php var_dump(__FILE__);'); 23 $tar->addFile('internal/file/here', "hi there!\n"); 24 $tar->mkDir('internal/dir'); 25 $tar->mkDir('dir'); 26 $tar->addFile('.phar/stub.php', '<?php 34 $tar->close(); [all …]
|
H A D | rename.phpt | 2 Phar: rename test tar-based 11 $fname = dirname(__FILE__) . '/' . 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(dirname(__FILE__) . '/' . 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 D | rename_dir.phpt | 2 Phar: rename_dir test tar-based 11 $fname = dirname(__FILE__) . '/' . 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(dirname(__FILE__) . '/' . 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 D | alias_acrobatics.phpt | 10 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar'; 11 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.2.phar.tar'; 38 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); 39 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.phar.tar'); 42 …ady used for archive "%salias_acrobatics.phar.tar" cannot be overloaded with "%salias_acrobatics.2… 44 phar error: Unable to add tar-based phar "%salias_acrobatics.2.phar.tar", alias is already in use 45 …eady used for archive "%salias_acrobatics.phar.tar" cannot be overloaded with "%salias_acrobatics.…
|
H A D | rmdir.phpt | 2 Phar: rmdir test tar-based 11 $fname = dirname(__FILE__) . '/' . 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(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?>
|
H A D | tar_makebz2.phpt | 2 Phar: tar-based phar, make new bzipped tar 11 $fname = dirname(__FILE__) . '/tar_makebz2.phar.tar'; 12 $fname2 = dirname(__FILE__) . '/tar_makebz2.phar.tar.bz2'; 13 $fname3 = dirname(__FILE__) . '/tar_makebz2_b.phar.tar.bz2'; 31 @unlink(dirname(__FILE__) . '/tar_makebz2.phar.tar'); 32 @unlink(dirname(__FILE__) . '/tar_makebz2.phar.tar.bz2'); 33 @unlink(dirname(__FILE__) . '/tar_makebz2_b.phar.tar.bz2');
|
H A D | tar_makegz.phpt | 2 Phar: tar-based phar, make new gzipped tar 11 $fname = dirname(__FILE__) . '/tar_makegz.phar.tar'; 12 $fname2 = dirname(__FILE__) . '/tar_makegz.phar.tar.gz'; 13 $fname3 = dirname(__FILE__) . '/tar_makegz_b.phar.tar.gz'; 32 @unlink(dirname(__FILE__) . '/tar_makegz.phar.tar'); 33 @unlink(dirname(__FILE__) . '/tar_makegz.phar.tar.gz'); 34 @unlink(dirname(__FILE__) . '/tar_makegz_b.phar.tar.gz');
|
H A D | truncated.phpt | 2 Phar: truncated tar 8 $p = new PharData(dirname(__FILE__) . '/files/trunc.tar'); 17 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); 21 phar error: "%strunc.tar" is a corrupted tar file (truncated)
|
H A D | refcount1.phpt | 2 Phar: test that refcounting avoids problems with deleting a file tar-based 11 $fname = dirname(__FILE__) . '/' . 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(); 51 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?> 56 string(%d) "phar://%srefcount1.phar.tar/b/c.php" 63 Warning: unlink(): phar error: "b/c.php" in phar "%srefcount1.phar.tar", has open file pointers, ca… [all …]
|
H A D | create_new_phar_b.phpt | 2 Phar: create a completely new tar-based phar 11 file_put_contents('phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar/a.p… 13 include 'phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar/a.php'; 18 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?> 20 Warning: file_put_contents(phar://%screate_new_phar_b.phar.tar/a.php): failed to open stream: phar … 22 Warning: include(phar://%screate_new_phar_b.phar.tar/a.php): failed to open stream: %s in %screate_… 24 Warning: include(): Failed opening 'phar://%screate_new_phar_b.phar.tar/a.php' for inclusion (inclu…
|
/PHP-7.3/ext/phar/tests/ |
H A D | phar_isvalidpharfilename.phpt | 21 echo "\nboo.tar\n"; 22 var_dump(Phar::isValidPharFilename('boo.tar')); 26 echo "\nboo.phar.tar\n"; 27 var_dump(Phar::isValidPharFilename('boo.phar.tar')); 33 echo "\n.phar/boo.tar\n"; 38 echo "\n.phar.tar\n"; 39 var_dump(Phar::isValidPharFilename('.phar.tar')); 90 boo.tar 95 boo.phar.tar 100 .phar/boo.tar [all …]
|
H A D | bug71391.phpt | 7 // 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 D | zf_test.phpt | 15 $phar_file = dirname(__FILE__) . "/$file.phar.tar.gz"; 41 unlink(dirname(__FILE__) . '/zfapp.phar.tar.gz'); 44 phar://%szfapp.phar.tar.gz/application/default/controllers/ErrorController.php 45 phar://%szfapp.phar.tar.gz/application/default/controllers/IndexController.php 46 phar://%szfapp.phar.tar.gz/application/default/views/scripts/error/error.phtml 47 phar://%szfapp.phar.tar.gz/application/default/views/scripts/index/index.phtml 48 phar://%szfapp.phar.tar.gz/html/.htaccess 49 phar://%szfapp.phar.tar.gz/html/index.php
|
/PHP-7.3/scripts/dev/ |
H A D | phpextdist | 24 tar cf $distname.tar $distname 25 rm -rf $distname $distname.tar.* 26 gzip --best $distname.tar 27 mv $distname.tar.gz $myname
|
/PHP-7.3/build/ |
H A D | build.mk | 54 tar cf $$distname.tar $$distname; \ 55 rm -rf $$distname $$distname.tar.*; \ 56 bzip2 -9 $$distname.tar; \ 57 md5sum $$distname.tar.bz2; \ 59 md5sum $$distname.tar.bz2; \ 60 bzip2 -t $$distname.tar.bz2
|