Home
last modified time | relevance | path

Searched refs:Phar (Results 1 – 25 of 698) sorted by relevance

12345678910>>...28

/PHP-8.0/ext/phar/
H A Dphar_object_arginfo.h369 ZEND_METHOD(Phar, addFile);
379 ZEND_METHOD(Phar, copy);
380 ZEND_METHOD(Phar, count);
381 ZEND_METHOD(Phar, delete);
385 ZEND_METHOD(Phar, getPath);
389 ZEND_METHOD(Phar, getStub);
404 ZEND_METHOD(Phar, setStub);
416 ZEND_METHOD(Phar, mapPhar);
417 ZEND_METHOD(Phar, running);
418 ZEND_METHOD(Phar, mount);
[all …]
/PHP-8.0/ext/phar/tests/
H A Dphar_isvalidpharfilename.phpt2 Phar: Phar::isValidPharFilename()
10 var_dump(Phar::isValidPharFilename('*'));
11 var_dump(Phar::isValidPharFilename('*', true));
12 var_dump(Phar::isValidPharFilename('*', false));
15 var_dump(Phar::isValidPharFilename('boo.phar'));
20 var_dump(Phar::isValidPharFilename('boo.tar'));
25 var_dump(Phar::isValidPharFilename('boo.phar.tar'));
37 var_dump(Phar::isValidPharFilename('.phar.tar'));
42 var_dump(Phar::isValidPharFilename('.phar.phar'));
52 var_dump(Phar::isValidPharFilename('my.pharmy'));
[all …]
H A Dphar_convert_repeated.phpt2 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 Dphar_convert_repeated_b.phpt19 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 Dphar_convert_again.phpt29 $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 Dphar_oo_compressallgz.phpt2 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 Dphar_unlinkarchive.phpt2 Phar::unlinkArchive()
12 Phar::unlinkArchive("");
21 Phar::unlinkArchive($fname);
27 Phar::unlinkArchive($pdname);
32 Phar::unlinkArchive(array());
50 $phar = new Phar($fname);
54 Phar::unlinkArchive($fname);
64 $phar = new Phar($fname3);
68 Phar::unlinkArchive($fname);
70 $phar = new Phar($fname);
[all …]
H A D003a.phpt2 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 Dphpinfo_001.phpt2 Phar: phpinfo display 1
8 $arr = Phar::getSupportedSignatures();
25 Phar: PHP Archive support => enabled
26 Phar API version => 1.1.1
27 Phar-based phar archives => enabled
36 Phar fully realized by Gregory Beaver and Marcus Boerger.
43 Phar
45 Phar: PHP Archive support => enabled
46 Phar API version => 1.1.1
47 Phar-based phar archives => enabled
[all …]
H A Dphar_oo_compressallbz2.phpt2 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 Dpharfileinfo_compression.phpt2 Phar: PharFileInfo compression-related methods
14 $phar = new Phar($fname);
30 $tar = $phar->convertToData(Phar::TAR);
34 $c->compress(Phar::GZ);
39 $phar['a']->compress(Phar::GZ);
45 $b->compress(Phar::GZ);
50 var_dump($b->compress(Phar::GZ));
51 var_dump($b->compress(Phar::GZ));
52 var_dump($b->compress(Phar::BZ2));
53 var_dump($b->compress(Phar::BZ2));
[all …]
H A Dphar_running.phpt2 Phar: Phar::running()
12 $phar = new Phar($fname);
14 var_dump(Phar::running());
15 var_dump(Phar::running(false));
18 var_dump(Phar::running());
H A Dtest_signaturealgos.phpt2 Phar: verify signature parsing works
6 $arr = Phar::getSupportedSignatures();
14 $a = new Phar(__DIR__ . '/files/sha1.phar');
17 $a = new Phar(__DIR__ . '/files/sha512.phar');
20 $a = new Phar(__DIR__ . '/files/sha256.phar');
23 $a = new Phar(__DIR__ . '/files/md5.phar');
26 $a = new Phar(__DIR__ . '/files/openssl.phar');
H A Dphpinfo_002.phpt2 Phar: phpinfo display 2
8 $arr = Phar::getSupportedSignatures();
21 Phar
23 Phar: PHP Archive support => enabled
24 Phar API version => 1.1.1
25 Phar-based phar archives => enabled
33 Phar based on pear/PHP_Archive, original concept by Davey Shafik.
34 Phar fully realized by Gregory Beaver and Marcus Boerger.
H A Dphpinfo_003.phpt2 Phar: phpinfo display 3
8 $arr = Phar::getSupportedSignatures();
21 Phar
23 Phar: PHP Archive support => enabled
24 Phar API version => 1.1.1
25 Phar-based phar archives => enabled
33 Phar based on pear/PHP_Archive, original concept by Davey Shafik.
34 Phar fully realized by Gregory Beaver and Marcus Boerger.
/PHP-8.0/ext/phar/phar/
H A Dphar.inc5 * @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-8.0/ext/phar/tests/tar/
H A Dphar_convert_phar2.phpt2 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 Dphar_convert_phar3.phpt2 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 Dphar_convert_phar.phpt2 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 Dphar_convert_phar4.phpt2 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);
H A Dtar_makebz2.phpt2 Phar: tar-based phar, make new bzipped tar
15 $phar = new Phar($fname);
17 var_dump($phar->isFileFormat(Phar::TAR));
18 $phar = $phar->compress(Phar::BZ2);
22 $phar2 = new Phar($fname3);
23 var_dump($phar2->isFileFormat(Phar::TAR));
24 var_dump($phar2->isCompressed() == Phar::BZ2);
/PHP-8.0/ext/phar/tests/zip/
H A Dphar_oo_compressallbz2.phpt2 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 Dphar_convert_phar.phpt2 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 Dphar_oo_compressallgz.phpt2 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 Dphar_begin_setstub_commit.phpt2 Phar::startBuffering()/setStub()/stopBuffering() zip-based
11 $p = new Phar(__DIR__ . '/phar_begin_setstub_commit.phar.zip', 0, 'phar_begin_setstub_commit.phar');
12 var_dump($p->isFileFormat(Phar::ZIP));
18 $p->setStub('<?php var_dump("First"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HALT_COMPI…
22 $p->setStub('<?php var_dump("Second"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HALT_COMP…
37 $c = strlen('<?php var_dump("First resource"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __H…
54 string(%d) "<?php var_dump("First"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HALT_COMPIL…
57 string(%d) "<?php var_dump("Second"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HALT_COMPI…
63 string(%d) "<?php var_dump("Second"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HALT_COMPI…
65 string(%d) "<?php var_dump("First resource"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HA…
[all …]

Completed in 30 milliseconds

12345678910>>...28