Home
last modified time | relevance | path

Searched refs:phar (Results 1 – 25 of 718) sorted by relevance

12345678910>>...29

/PHP-7.0/ext/phar/
H A DMakefile.frag4 pharcmd: $(builddir)/phar.php $(builddir)/phar.phar
23 $(builddir)/phar/phar.inc: $(srcdir)/phar/phar.inc
24 -@test -d $(builddir)/phar || mkdir $(builddir)/phar
25 -@test -f $(builddir)/phar/phar.inc || cp $(srcdir)/phar/phar.inc $(builddir)/phar/phar.inc
31 $(builddir)/phar.phar: $(builddir)/phar.php $(builddir)/phar/phar.inc $(srcdir)/phar/*.inc $(srcdir…
33 -@rm -f $(builddir)/phar.phar
34 -@rm -f $(srcdir)/phar.phar
35phar.php pack -f $(builddir)/phar.phar -a pharcommand -c auto -x \\.svn -p 0 -s $(srcdir)/phar/pha…
36 -@chmod +x $(builddir)/phar.phar
42 $(LN_S) -f phar.phar $(INSTALL_ROOT)$(bindir)/phar
[all …]
/PHP-7.0/ext/phar/tests/tar/
H A Dphar_buildfromiterator8.phpt6 phar.readonly=0
11 $phar = new Phar(dirname(__FILE__) . '/buildfromiterator.phar.tar');
29 ["frontcontroller1.phar.phpt"]=>
31 ["frontcontroller10.phar.phpt"]=>
33 ["frontcontroller11.phar.phpt"]=>
35 ["frontcontroller12.phar.phpt"]=>
37 ["frontcontroller13.phar.phpt"]=>
39 ["frontcontroller14.phar.phpt"]=>
41 ["frontcontroller15.phar.phpt"]=>
51 ["frontcontroller2.phar.phpt"]=>
[all …]
H A Dphar_convert_phar4.phpt7 phar.require_hash=0
8 phar.readonly=0
15 $phar = new Phar($fname);
16 $phar['a.txt'] = 'some text';
17 $phar->setMetadata(b'hi');
18 $phar->stopBuffering();
23 $phar = $phar->convertToExecutable(Phar::TAR);
25 var_dump($phar->getStub());
28 $phar['a'] = 'hi there';
30 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::GZ);
[all …]
H A Dphar_convert_phar.phpt6 phar.require_hash=0
7 phar.readonly=0
15 $phar = new Phar($fname);
16 $phar['a.txt'] = 'some text';
17 $phar->stopBuffering();
19 var_dump(strlen($phar->getStub()));
21 $phar = $phar->convertToExecutable(Phar::TAR);
23 var_dump($phar->getStub());
25 $phar['a'] = 'hi there';
27 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::NONE, '.3.phar');
[all …]
H A Dphar_convert_phar2.phpt7 phar.require_hash=0
8 phar.readonly=0
15 $phar = new Phar($fname);
16 $phar['a.txt'] = 'some text';
17 $phar->stopBuffering();
21 $phar = $phar->convertToExecutable(Phar::TAR);
23 var_dump($phar->getStub());
25 $phar['a'] = 'hi there';
27 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::GZ);
29 var_dump($phar->isCompressed());
[all …]
H A Dphar_convert_phar3.phpt7 phar.require_hash=0
8 phar.readonly=0
15 $phar = new Phar($fname);
16 $phar['a.txt'] = 'some text';
17 $phar->stopBuffering();
21 $phar = $phar->convertToExecutable(Phar::TAR);
23 var_dump($phar->getStub());
25 $phar['a'] = 'hi there';
27 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::BZ2);
29 var_dump($phar->isCompressed());
[all …]
H A D033a.phpt6 phar.readonly=0
7 phar.require_hash=0
12 $alias = 'phar://hio';
14 $phar = new Phar($fname);
16 $phar->setAlias('hio');
17 $phar->addEmptyDir('test');
18 $phar->stopBuffering();
19 ini_set('phar.readonly', 1);
23 $phar['a.php']->chmod(0777);
29 $phar['test']->chmod(0000);
[all …]
H A Dbug49910.phpt2 Bug #49910: no support for ././@LongLink for long filenames in phar tar support
4 <?php if (!extension_loaded("phar")) die("skip"); ?>
20 [0] => phar://*/Structures_Graph-1.0.3/LICENSE
23 [3] => phar://*/Structures_Graph-1.0.3/Structures/Graph/Node.php
24 [4] => phar://*/Structures_Graph-1.0.3/Structures/Graph.php
25 [5] => phar://*/Structures_Graph-1.0.3/docs/generate.sh
38 [18] => phar://*/Structures_Graph-1.0.3/docs/html/errors.html
39 [19] => phar://*/Structures_Graph-1.0.3/docs/html/index.html
43 [23] => phar://*/Structures_Graph-1.0.3/docs/html/packages.html
46 [26] => phar://*/Structures_Graph-1.0.3/tests/AllTests.php
[all …]
/PHP-7.0/ext/phar/tests/zip/
H A Dphar_buildfromiterator8.phpt6 phar.readonly=0
11 $phar = new Phar(dirname(__FILE__) . '/buildfromiterator.phar.zip');
29 ["frontcontroller1.phar.phpt"]=>
31 ["frontcontroller10.phar.phpt"]=>
33 ["frontcontroller11.phar.phpt"]=>
35 ["frontcontroller12.phar.phpt"]=>
37 ["frontcontroller13.phar.phpt"]=>
39 ["frontcontroller14.phar.phpt"]=>
41 ["frontcontroller15.phar.phpt"]=>
51 ["frontcontroller2.phar.phpt"]=>
[all …]
H A Dgetalias.phpt6 phar.readonly=0
13 $phar = new Phar($fname);
14 var_dump($phar->getAlias());
15 unset($phar);
20 $phar = new Phar($fname);
21 var_dump($phar->getAlias());
25 var_dump($phar->getAlias());
26 unset($phar);
29 $phar = new Phar($fname);
34 $phar['.phar/alias.txt'] = 'pinocchio';
[all …]
H A Dphar_convert_phar.phpt6 phar.require_hash=0
7 phar.readonly=0
15 $phar = new Phar($fname);
16 $phar['a.txt'] = 'some text';
17 $phar->stopBuffering();
19 var_dump(strlen($phar->getStub()));
21 $phar = $phar->convertToExecutable(Phar::ZIP);
23 var_dump($phar->getStub());
25 $phar['a'] = 'hi there';
27 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::NONE, '.3.phar');
[all …]
H A D033a.phpt6 phar.readonly=0
7 phar.require_hash=0
12 $alias = 'phar://hio';
14 $phar = new Phar($fname);
16 $phar->setAlias('hio');
17 $phar->addEmptyDir('test');
18 $phar->stopBuffering();
19 ini_set('phar.readonly', 1);
23 $phar['a.php']->chmod(0777);
29 $phar['test']->chmod(0777);
[all …]
H A Dall.phpt12 phar.readonly=0
21 $phar = new Phar($fname);
24 $phar['a'] = 'hi';
26 $phar['b'] = 'hi2';
28 $phar['c'] = 'hi3';
30 $phar['b']->chmod(0444);
32 $phar->setAlias("hime");
33 unset($phar);
38 $phar = new Phar($fname2);
39 var_dump($phar['a']->getContent(), $phar['b']->getContent(), $phar['c']->getContent());
[all …]
/PHP-7.0/ext/phar/tests/
H A Dfopen_edgecases.phpt6 phar.readonly=0
33 $a = fopen('phar://foo.phar', 'r');
42 var_dump(stat('phar://foo.phar'));
51 unlink('phar://foo.phar');
54 rename('phar://', 'phar://');
56 rename('phar://foo.phar/hi', 'phar://');
57 rename($pname . '/hi', 'phar://foo.phar/hi');
77 …(phar://%sfopen_edgecases.phar.php.phar.gz): failed to open stream: phar error: invalid url or non…
106 Warning: unlink(): phar error: invalid url or non-existent phar "phar://foo.phar" in %sfopen_edgeca…
116 Warning: rename(): phar error: cannot rename "phar://foo.phar/hi" to "phar://": invalid or non-writ…
[all …]
H A Dphar_convert_repeated.phpt6 phar.require_hash=0
7 phar.readonly=0
12 $pname = 'phar://' . $fname;
26 $phar = new Phar($fname);
30 var_dump($phar->getStub());
35 $phar = $phar->convertToExecutable(Phar::TAR);
44 $phar = $phar->convertToExecutable(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 Ddir.phpt6 phar.readonly=0
7 phar.require_hash=0
35 mkdir('phar://' . dirname(__FILE__) . '/ok.phar/fails');
36 mkdir('phar://' . dirname(__FILE__) . '/ok.phar/fails');
38 mkdir('phar://' . dirname(__FILE__) . '/ok.phar/sub');
41 mkdir('phar://' . dirname(__FILE__) . '/oops.phar/fails');
43 mkdir('phar://');
44 rmdir('phar://');
45 rmdir('phar://' . dirname(__FILE__) . '/unknown.phar/hi');
81 Warning: rmdir(): phar error: cannot remove directory "phar://", no phar archive specified, or phar
[all …]
H A Dphar_convert_repeated_b.phpt7 phar.readonly=1
15 $phar['a'] = 'a';
16 $phar['b'] = 'b';
17 $phar['c'] = 'c';
27 $phar = $phar->convertToData(Phar::TAR);
36 $phar = $phar->convertToData(Phar::ZIP, Phar::NONE, '.1.zip');
46 $phar = $phar->convertToExecutable(Phar::PHAR);
58 $phar = $phar->convertToData(Phar::TAR, Phar::GZ, '.2.tar');
68 $phar = $phar->convertToExecutable(Phar::PHAR);
109 Cannot write out executable phar archive, phar is read-only
[all …]
H A Dbug47085.phpt4 <?php if (!extension_loaded("phar")) die("skip"); ?>
6 phar.require_hash=0
7 phar.readonly=0
10 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar';
12 $phar = new Phar($fname, 0, 'a.phar');
13 $phar['x'] = 'hi';
14 unset($phar);
15 rename("phar://a.phar/x", "phar://a.phar/y");
16 var_dump(rename("phar://a.phar/x", "phar://a.phar/y"));
20 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');?>
[all …]
H A Dphar_isvalidpharfilename.phpt6 phar.readonly=1
43 echo "\n.phar.phar\n";
44 var_dump(Phar::isValidPharFilename('.phar.phar'));
45 var_dump(Phar::isValidPharFilename('.phar.phar', true));
64 var_dump(Phar::isValidPharFilename('phar.zip.phar'));
85 boo.phar
105 .phar.tar
110 .phar.phar
115 .phar.phart
125 phar.zip
[all …]
H A Dphar_offset_check.phpt7 phar.readonly=0
8 phar.require_hash=1
16 $phar->setDefaultStub();
22 $phar->offsetGet('.phar/stub.php');
28 $phar->offsetGet('.phar/alias.txt');
34 $phar->offsetSet('.phar/stub.php', '<?php __HALT_COMPILER(); ?>');
42 $phar->offsetUnset('.phar/stub.php');
50 $phar->offsetSet('.phar/alias.txt', 'dolly');
58 $phar->offsetUnset('.phar/alias.txt');
72 Cannot set stub ".phar/stub.php" directly in phar "%sphar_offset_check.phar.php", use setStub
[all …]
H A Dmkdir.phpt2 phar: mkdir/rmdir edge cases
6 phar.readonly=0
12 mkdir('phar://');
13 mkdir('phar://foo.phar');
17 rmdir('phar://');
18 rmdir('phar://foo.phar');
35 Warning: mkdir(): phar error: cannot create directory "phar://", no phar archive specified in %smkd…
37 Warning: mkdir(): phar error: cannot create directory "" in phar "foo.phar", phar error: invalid pa…
39 Warning: mkdir(): phar error: cannot create directory "a" in phar "%smkdir.phar.php", phar error: p…
41 Warning: rmdir(): phar error: cannot remove directory "phar://", no phar archive specified, or phar
[all …]
H A Dzf_test.phpt7 phar.readonly=0
8 phar.require_hash=0
19 $phar = $phar->convertToExecutable();
22 $phar->startBuffering();
23 $phar->setStub("<?php
30 $phar->stopBuffering();
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
48 phar://%szfapp.phar.tar.gz/html/.htaccess
[all …]
H A Dini_set_offU.phpt9 phar.require_hash=0
10 phar.readonly=0
14 var_dump(ini_set('phar.readonly', 1));
16 var_dump(ini_get('phar.readonly'));
17 ini_set('phar.require_hash', 0);
18 ini_set('phar.readonly', 0);
26 var_dump(ini_get('phar.readonly'));
28 ini_set('phar.require_hash', 0);
29 ini_set('phar.readonly', 0);
38 ini_set('phar.require_hash', 0);
[all …]
H A Dini_set_off.phpt9 phar.require_hash=0
10 phar.readonly=0
14 var_dump(ini_set('phar.readonly', 1));
16 var_dump(ini_get('phar.readonly'));
17 ini_set('phar.require_hash', 0);
18 ini_set('phar.readonly', 0);
26 var_dump(ini_get('phar.readonly'));
28 ini_set('phar.require_hash', 0);
29 ini_set('phar.readonly', 0);
38 ini_set('phar.require_hash', 0);
[all …]
H A Dopendir.phpt4 <?php if (!extension_loaded("phar")) die("skip");?>
6 phar.require_hash=1
7 phar.readonly=0
10 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
25 set_include_path("phar://" . __FILE__);
30 opendir('phar://');
31 opendir('phar://hi.phar');
39 …(phar://): failed to open dir: phar error: no directory in "phar://", must have at least phar:/// …
40 phar url "phar://" is unknown in %sopendir.php on line %d
42 Warning: opendir(phar://hi.phar): failed to open dir: phar error: invalid url or non-existent phar
[all …]

Completed in 43 milliseconds

12345678910>>...29