/PHP-7.1/ext/phar/tests/ |
H A D | phar_isvalidpharfilename.phpt | 2 Phar: Phar::isValidPharFilename() 10 Phar::isValidPharFilename(array()); 12 var_dump(Phar::isValidPharFilename('*')); 13 var_dump(Phar::isValidPharFilename('*', true)); 14 var_dump(Phar::isValidPharFilename('*', false)); 17 var_dump(Phar::isValidPharFilename('boo.phar')); 22 var_dump(Phar::isValidPharFilename('boo.tar')); 39 var_dump(Phar::isValidPharFilename('.phar.tar')); 44 var_dump(Phar::isValidPharFilename('.phar.phar')); 54 var_dump(Phar::isValidPharFilename('my.pharmy')); [all …]
|
H A D | phar_convert_repeated.phpt | 2 Phar::convertToZip|Tar|Phar() repeated (phar_based archives) 26 $phar = new Phar($fname); 27 var_dump($phar->isFileFormat(Phar::PHAR)); 28 var_dump($phar->isFileFormat(Phar::TAR)); 29 var_dump($phar->isFileFormat(Phar::ZIP)); 37 var_dump($phar->isFileFormat(Phar::TAR)); 38 var_dump($phar->isFileFormat(Phar::ZIP)); 53 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::NONE, '.2.phar'); 62 $phar = $phar->convertToExecutable(Phar::ZIP, Phar::NONE, '.2.phar.zip'); 71 $phar = $phar->convertToExecutable(Phar::TAR, Phar::NONE, '2.phar.tar'); [all …]
|
H A D | phar_convert_repeated_b.phpt | 19 var_dump($phar->isFileFormat(Phar::PHAR)); 20 var_dump($phar->isFileFormat(Phar::TAR)); 21 var_dump($phar->isFileFormat(Phar::ZIP)); 27 $phar = $phar->convertToData(Phar::TAR); 28 var_dump($phar->isFileFormat(Phar::PHAR)); 29 var_dump($phar->isFileFormat(Phar::TAR)); 30 var_dump($phar->isFileFormat(Phar::ZIP)); 36 $phar = $phar->convertToData(Phar::ZIP, Phar::NONE, '.1.zip'); 38 var_dump($phar->isFileFormat(Phar::TAR)); 39 var_dump($phar->isFileFormat(Phar::ZIP)); [all …]
|
H A D | phar_convert_again.phpt | 29 $tgz = $phar->convertToData(Phar::TAR, Phar::GZ); 31 $tbz = $phar->convertToData(Phar::TAR, Phar::BZ2); 34 $phar = $tbz->convertToExecutable(Phar::PHAR, Phar::NONE); 40 $phar = $tbz->convertToExecutable(Phar::PHAR, Phar::NONE); 77 $tgz->convertToExecutable(Phar::ZIP, Phar::GZ); 82 $tgz->convertToExecutable(Phar::ZIP, Phar::BZ2); 102 $tgz->convertToData(Phar::ZIP, Phar::GZ); 107 $tgz->convertToData(Phar::ZIP, Phar::BZ2); 138 $tgz->convertToData(Phar::TAR, Phar::GZ, '.phar.tgz.oops'); 150 $tgz->convertToData(Phar::TAR, Phar::GZ, '.phar/.tgz.oops'); [all …]
|
H A D | phpinfo_001.phpt | 2 Phar: phpinfo display 1 8 $arr = Phar::getSupportedSignatures(); 26 Phar: PHP Archive support => enabled 27 Phar EXT version => %s 28 Phar API version => 1.1.1 30 Phar-based phar archives => enabled 46 Phar 48 Phar: PHP Archive support => enabled 49 Phar EXT version => %s 50 Phar API version => 1.1.1 [all …]
|
H A D | phar_oo_compressallgz.phpt | 2 Phar::compressFiles(Phar::GZ) 22 $phar = new Phar($fname); 31 $phar = new Phar($fname); 32 $phar->compressFiles(Phar::GZ); 34 var_dump($phar['a']->isCompressed(Phar::GZ)); 35 var_dump($phar['a']->isCompressed(Phar::BZ2)); 37 var_dump($phar['b']->isCompressed(Phar::GZ)); 38 var_dump($phar['b']->isCompressed(Phar::BZ2)); 40 var_dump($phar['c']->isCompressed(Phar::GZ)); 41 var_dump($phar['b']->isCompressed(Phar::BZ2)); [all …]
|
H A D | phar_unlinkarchive.phpt | 2 Phar::unlinkArchive() 12 Phar::unlinkArchive(""); 21 Phar::unlinkArchive($fname); 27 Phar::unlinkArchive($pdname); 31 Phar::unlinkArchive(array()); 46 $phar = new Phar($fname); 50 Phar::unlinkArchive($fname); 60 $phar = new Phar($fname3); 64 Phar::unlinkArchive($fname); 66 $phar = new Phar($fname); [all …]
|
H A D | phar_running.phpt | 2 Phar: Phar::running() 12 $phar = new Phar($fname); 14 Phar::running(array()); 15 var_dump(Phar::running()); 16 var_dump(Phar::running(false)); 19 var_dump(Phar::running()); 25 Warning: Phar::running() expects parameter 1 to be boolean, array given in phar://%sphar_running.ph…
|
H A D | phar_oo_compressallbz2.phpt | 2 Phar::compressFiles(Phar::BZ2) 22 $phar = new Phar($fname); 31 $phar = new Phar($fname); 32 $phar->compressFiles(Phar::BZ2); 34 var_dump($phar['a']->isCompressed(Phar::GZ)); 35 var_dump($phar['a']->isCompressed(Phar::BZ2)); 37 var_dump($phar['b']->isCompressed(Phar::GZ)); 38 var_dump($phar['b']->isCompressed(Phar::BZ2)); 40 var_dump($phar['c']->isCompressed(Phar::GZ)); 41 var_dump($phar['b']->isCompressed(Phar::BZ2));
|
H A D | 003a.phpt | 2 Phar::canCompress, specific 7 var_dump(Phar::canCompress(Phar::GZ) == extension_loaded("zlib")); 8 var_dump(Phar::canCompress(Phar::BZ2) == extension_loaded("bz2"));
|
H A D | phpinfo_002.phpt | 2 Phar: phpinfo display 2 8 $arr = Phar::getSupportedSignatures(); 22 Phar 24 Phar: PHP Archive support => enabled 25 Phar EXT version => %s 26 Phar API version => 1.1.1 28 Phar-based phar archives => enabled 36 Phar based on pear/PHP_Archive, original concept by Davey Shafik. 37 Phar fully realized by Gregory Beaver and Marcus Boerger.
|
H A D | phpinfo_003.phpt | 2 Phar: phpinfo display 3 8 $arr = Phar::getSupportedSignatures(); 22 Phar 24 Phar: PHP Archive support => enabled 25 Phar EXT version => %s 26 Phar API version => 1.1.1 28 Phar-based phar archives => enabled 36 Phar based on pear/PHP_Archive, original concept by Davey Shafik. 37 Phar fully realized by Gregory Beaver and Marcus Boerger.
|
H A D | pharfileinfo_compression.phpt | 2 Phar: PharFileInfo compression-related methods 14 $phar = new Phar($fname); 31 $tar = $phar->convertToData(Phar::TAR); 35 $c->compress(Phar::GZ); 40 $phar['a']->compress(Phar::GZ); 46 $b->compress(Phar::GZ); 51 var_dump($b->compress(Phar::GZ)); 52 var_dump($b->compress(Phar::GZ)); 53 var_dump($b->compress(Phar::BZ2)); 54 var_dump($b->compress(Phar::BZ2)); [all …]
|
H A D | badparameters.phpt | 2 Phar: bad parameters to various methods 15 Phar::mungServer('hi'); 16 Phar::createDefaultStub(array()); 17 Phar::loadPhar(array()); 18 Phar::canCompress('hi'); 20 $a = new Phar(array()); 96 $a->setSignatureAlgorithm(Phar::MD5); 167 A Phar alias cannot be set in a plain tar archive 171 A Phar stub cannot be set in a plain tar archive 174 A Phar stub cannot be set in a plain tar archive [all …]
|
H A D | phar_oo_uncompressall.phpt | 2 Phar::decompressFiles() 22 $phar = new Phar($fname); 31 $phar = new Phar($fname); 32 $phar->compressFiles(Phar::GZ); 34 var_dump($phar['a']->isCompressed(Phar::GZ)); 35 var_dump($phar['a']->isCompressed(Phar::BZ2)); 37 var_dump($phar['b']->isCompressed(Phar::GZ)); 38 var_dump($phar['b']->isCompressed(Phar::BZ2)); 40 var_dump($phar['c']->isCompressed(Phar::GZ)); 41 var_dump($phar['b']->isCompressed(Phar::BZ2));
|
/PHP-7.1/ext/phar/phar/ |
H A D | phar.inc | 5 * @ingroup Phar 6 * @brief class Phar 10 * Phar Command 12 // {{{ class Phar extends PHP_Archive 14 * Phar class 16 * @ingroup Phar 17 * @brief Phar implementation 21 class Phar extends PHP_Archive implements RecursiveIterator
|
/PHP-7.1/ext/phar/tests/zip/ |
H A D | phar_oo_compressallbz2.phpt | 2 Phar::compressFiles(Phar::BZ2) zip format 15 $phar = new Phar($fname); 27 $phar->compressFiles(Phar::BZ2); 29 var_dump($phar['a']->isCompressed(Phar::GZ)); 30 var_dump($phar['a']->isCompressed(Phar::BZ2)); 32 var_dump($phar['b']->isCompressed(Phar::GZ)); 33 var_dump($phar['b']->isCompressed(Phar::BZ2)); 35 var_dump($phar['c']->isCompressed(Phar::GZ)); 39 $c = new Phar($fname2); 41 var_dump($c['a']->isCompressed(Phar::GZ)); [all …]
|
H A D | phar_convert_phar.phpt | 2 Phar::convertToPhar() from zip 15 $phar = new Phar($fname); 18 var_dump($phar->isFileFormat(Phar::ZIP)); 21 $phar = $phar->convertToExecutable(Phar::ZIP); 22 var_dump($phar->isFileFormat(Phar::ZIP)); 27 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::NONE, '.3.phar'); 28 var_dump($phar->isFileFormat(Phar::PHAR)); 33 $phar = new Phar($fname2); 34 var_dump($phar->isFileFormat(Phar::PHAR));
|
H A D | phar_oo_compressallgz.phpt | 2 Phar::compressFiles(Phar::GZ) zip format 13 $phar = new Phar($fname); 25 $phar->compressFiles(Phar::GZ); 27 var_dump($phar['a']->isCompressed(Phar::BZ2)); 28 var_dump($phar['a']->isCompressed(Phar::GZ)); 30 var_dump($phar['b']->isCompressed(Phar::BZ2)); 31 var_dump($phar['b']->isCompressed(Phar::GZ)); 33 var_dump($phar['b']->isCompressed(Phar::BZ2)); 34 var_dump($phar['c']->isCompressed(Phar::GZ));
|
H A D | phar_begin_setstub_commitU.phpt | 2 Phar::startBuffering()/setStub()/stopBuffering() zip-based 12 $p = new Phar(dirname(__FILE__) . '/brandnewphar.phar.zip', 0, 'brandnewphar.phar'); 13 var_dump($p->isFileFormat(Phar::ZIP)); 19 $p->setStub('<?php var_dump("First"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER(); ?>'); 23 $p->setStub('<?php var_dump("Second"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER();'); 38 $c = strlen('<?php var_dump("First resource"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER(… 56 string(84) "<?php var_dump("First"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER(); ?> 59 string(85) "<?php var_dump("Second"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER(); ?> 65 string(85) "<?php var_dump("Second"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER(); ?> 67 string(93) "<?php var_dump("First resource"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER()… [all …]
|
H A D | phar_begin_setstub_commit.phpt | 2 Phar::startBuffering()/setStub()/stopBuffering() zip-based 12 $p = new Phar(dirname(__FILE__) . '/brandnewphar.phar.zip', 0, 'brandnewphar.phar'); 13 var_dump($p->isFileFormat(Phar::ZIP)); 19 $p->setStub('<?php var_dump("First"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER(); ?>'); 23 $p->setStub('<?php var_dump("Second"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER();'); 38 $c = strlen('<?php var_dump("First resource"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER(… 56 string(84) "<?php var_dump("First"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER(); ?> 59 string(85) "<?php var_dump("Second"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER(); ?> 65 string(85) "<?php var_dump("Second"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER(); ?> 67 string(93) "<?php var_dump("First resource"); Phar::mapPhar("brandnewphar.phar"); __HALT_COMPILER()… [all …]
|
/PHP-7.1/ext/phar/tests/tar/ |
H A D | phar_convert_phar2.phpt | 2 Phar::convertToPhar() gzipped 15 $phar = new Phar($fname); 18 var_dump($phar->isFileFormat(Phar::TAR)); 21 $phar = $phar->convertToExecutable(Phar::TAR); 22 var_dump($phar->isFileFormat(Phar::TAR)); 27 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::GZ); 28 var_dump($phar->isFileFormat(Phar::PHAR)); 34 $phar = new Phar($fname2); 35 var_dump($phar->isFileFormat(Phar::PHAR)); 36 var_dump($phar->isCompressed() == Phar::GZ);
|
H A D | phar_convert_phar3.phpt | 2 Phar::convertToPhar() bzipped 15 $phar = new Phar($fname); 18 var_dump($phar->isFileFormat(Phar::TAR)); 21 $phar = $phar->convertToExecutable(Phar::TAR); 22 var_dump($phar->isFileFormat(Phar::TAR)); 27 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::BZ2); 28 var_dump($phar->isFileFormat(Phar::PHAR)); 34 $phar = new Phar($fname2); 35 var_dump($phar->isFileFormat(Phar::PHAR)); 36 var_dump($phar->isCompressed() == Phar::BZ2);
|
H A D | phar_convert_phar.phpt | 2 Phar::convertToPhar() from tar 15 $phar = new Phar($fname); 18 var_dump($phar->isFileFormat(Phar::TAR)); 21 $phar = $phar->convertToExecutable(Phar::TAR); 22 var_dump($phar->isFileFormat(Phar::TAR)); 27 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::NONE, '.3.phar'); 28 var_dump($phar->isFileFormat(Phar::PHAR)); 33 $phar = new Phar($fname2); 34 var_dump($phar->isFileFormat(Phar::PHAR));
|
H A D | phar_convert_phar4.phpt | 2 Phar::convertToPhar() with global metadata 15 $phar = new Phar($fname); 19 var_dump($phar->isFileFormat(Phar::TAR)); 23 $phar = $phar->convertToExecutable(Phar::TAR); 24 var_dump($phar->isFileFormat(Phar::TAR)); 30 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::GZ); 31 var_dump($phar->isFileFormat(Phar::PHAR)); 38 $phar = new Phar($fname2); 39 var_dump($phar->isFileFormat(Phar::PHAR)); 40 var_dump($phar->isCompressed() == Phar::GZ);
|