Home
last modified time | relevance | path

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

12345678910>>...29

/PHP-8.1/ext/phar/
H A Dphar_object_arginfo.h391 ZEND_METHOD(Phar, addFile);
401 ZEND_METHOD(Phar, copy);
402 ZEND_METHOD(Phar, count);
403 ZEND_METHOD(Phar, delete);
407 ZEND_METHOD(Phar, getPath);
411 ZEND_METHOD(Phar, getStub);
426 ZEND_METHOD(Phar, setStub);
438 ZEND_METHOD(Phar, mapPhar);
439 ZEND_METHOD(Phar, running);
440 ZEND_METHOD(Phar, mount);
[all …]
/PHP-8.1/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'));
16 var_dump(Phar::isValidPharFilename('boo.phar', true));
20 var_dump(Phar::isValidPharFilename('boo.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 Dphpinfo_001.phpt2 Phar: phpinfo display 1
9 $arr = Phar::getSupportedSignatures();
26 Phar: PHP Archive support => enabled
27 Phar API version => 1.1.1
28 Phar-based phar archives => enabled
37 Phar fully realized by Gregory Beaver and Marcus Boerger.
44 Phar
46 Phar: PHP Archive support => enabled
47 Phar API version => 1.1.1
48 Phar-based phar archives => enabled
[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 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_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 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 Dtest_signaturealgos.phpt2 Phar: verify signature parsing works
7 $arr = Phar::getSupportedSignatures();
15 $a = new Phar(__DIR__ . '/files/sha1.phar');
18 $a = new Phar(__DIR__ . '/files/sha512.phar');
21 $a = new Phar(__DIR__ . '/files/sha256.phar');
24 $a = new Phar(__DIR__ . '/files/md5.phar');
27 $a = new Phar(__DIR__ . '/files/openssl.phar');
30 $a = new Phar(__DIR__ . '/files/openssl256.phar');
33 $a = new Phar(__DIR__ . '/files/openssl512.phar');
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 Dphpinfo_002.phpt2 Phar: phpinfo display 2
9 $arr = Phar::getSupportedSignatures();
22 Phar
24 Phar: PHP Archive support => enabled
25 Phar API version => 1.1.1
26 Phar-based phar archives => enabled
34 Phar based on pear/PHP_Archive, original concept by Davey Shafik.
35 Phar fully realized by Gregory Beaver and Marcus Boerger.
/PHP-8.1/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.1/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
9 $p = new Phar(__DIR__ . '/phar_begin_setstub_commit.phar.zip', 0, 'phar_begin_setstub_commit.phar');
10 var_dump($p->isFileFormat(Phar::ZIP));
16 $p->setStub('<?php var_dump("First"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HALT_COMPI…
20 $p->setStub('<?php var_dump("Second"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HALT_COMP…
35 $c = strlen('<?php var_dump("First resource"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __H…
52 string(%d) "<?php var_dump("First"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HALT_COMPIL…
55 string(%d) "<?php var_dump("Second"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HALT_COMPI…
61 string(%d) "<?php var_dump("Second"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HALT_COMPI…
63 string(%d) "<?php var_dump("First resource"); Phar::mapPhar("phar_begin_setstub_commit.phar"); __HA…
[all …]
/PHP-8.1/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);
H A Dtar_makegz.phpt2 Phar: tar-based phar, make new gzipped tar
15 $phar = new Phar($fname);
17 var_dump($phar->isFileFormat(Phar::TAR));
18 $phar = $phar->compress(Phar::GZ);
23 $phar2 = new Phar($fname3);
24 var_dump($phar2->isFileFormat(Phar::TAR));
25 var_dump($phar2->isCompressed() == Phar::GZ);

Completed in 21 milliseconds

12345678910>>...29