Home
last modified time | relevance | path

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

12345678910>>...29

/php-src/ext/phar/
H A DMakefile.frag9 pharcmd: $(builddir)/phar.php $(builddir)/phar.phar
28 $(builddir)/phar/phar.inc: $(srcdir)/phar/phar.inc
29 -@test -d $(builddir)/phar || mkdir $(builddir)/phar
30 -@test -f $(builddir)/phar/phar.inc || cp $(srcdir)/phar/phar.inc $(builddir)/phar/phar.inc
43 $(builddir)/phar.phar: $(builddir)/phar.php $(builddir)/phar/phar.inc $(srcdir)/phar/*.inc $(srcdir…
46 rm -f $(builddir)/phar.phar; \
47 rm -f $(srcdir)/phar.phar; \
48 …dir)/phar.php pack -f $(builddir)/phar.phar -a pharcommand -c auto -p 0 -s $(srcdir)/phar/phar.php…
49 chmod +x $(builddir)/phar.phar; \
57 …$(INSTALL) $(builddir)/phar.phar $(INSTALL_ROOT)$(bindir)/$(program_prefix)phar$(program_suffix).p…
[all …]
/php-src/ext/phar/tests/zip/
H A Dphar_buildfromiterator8.phpt4 phar
6 phar.readonly=0
10 $phar = new Phar(__DIR__ . '/buildfromiterator8.phar.zip');
22 ["frontcontroller1.phar.phpt"]=>
24 ["frontcontroller10.phar.phpt"]=>
26 ["frontcontroller11.phar.phpt"]=>
28 ["frontcontroller12.phar.phpt"]=>
30 ["frontcontroller13.phar.phpt"]=>
32 ["frontcontroller14.phar.phpt"]=>
34 ["frontcontroller15.phar.phpt"]=>
[all …]
H A Dphar_convert_phar.phpt4 phar
6 phar.require_hash=0
7 phar.readonly=0
15 $phar = new Phar($fname);
16 $phar['a.txt'] = 'some text';
17 $phar->stopBuffering();
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 Dgetalias.phpt4 phar
6 phar.readonly=0
7 phar.require_hash=0
14 $phar = new Phar($fname);
15 var_dump($phar->getAlias());
16 unset($phar);
21 $phar = new Phar($fname);
27 unset($phar);
30 $phar = new Phar($fname);
35 $phar['.phar/alias.txt'] = 'pinocchio';
[all …]
H A Dall.phpt4 phar
8 phar.readonly=0
17 $phar = new Phar($fname);
20 $phar['a'] = 'hi';
22 $phar['b'] = 'hi2';
24 $phar['c'] = 'hi3';
26 $phar['b']->chmod(0444);
28 $phar->setAlias("hime");
29 unset($phar);
35 var_dump($phar['a']->getContent(), $phar['b']->getContent(), $phar['c']->getContent());
[all …]
H A D033a.phpt4 phar
6 phar.readonly=0
7 phar.require_hash=0
18 $alias = 'phar://hio';
20 $phar = new Phar($fname);
22 $phar->setAlias('hio');
23 $phar->addEmptyDir('test');
24 $phar->stopBuffering();
25 ini_set('phar.readonly', 1);
29 $phar['a.php']->chmod(0777);
[all …]
/php-src/ext/phar/tests/tar/
H A Dphar_buildfromiterator8.phpt4 phar
6 phar.readonly=0
10 $phar = new Phar(__DIR__ . '/buildfromiterator8.phar.tar');
22 ["frontcontroller1.phar.phpt"]=>
24 ["frontcontroller10.phar.phpt"]=>
26 ["frontcontroller11.phar.phpt"]=>
28 ["frontcontroller12.phar.phpt"]=>
30 ["frontcontroller13.phar.phpt"]=>
32 ["frontcontroller14.phar.phpt"]=>
34 ["frontcontroller15.phar.phpt"]=>
[all …]
H A Dphar_convert_phar4.phpt4 phar
7 phar.require_hash=0
8 phar.readonly=0
15 $phar = new Phar($fname);
16 $phar['a.txt'] = 'some text';
17 $phar->setMetadata('hi');
18 $phar->stopBuffering();
23 $phar = $phar->convertToExecutable(Phar::TAR);
25 var_dump($phar->getStub());
28 $phar['a'] = 'hi there';
[all …]
H A Dphar_convert_phar2.phpt4 phar
7 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);
[all …]
H A Dphar_convert_phar3.phpt4 phar
7 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);
[all …]
H A Dphar_convert_phar.phpt4 phar
6 phar.require_hash=0
7 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::NONE, '.3.phar');
[all …]
H A Dall.phpt4 phar
6 phar.readonly=0
11 $pname = 'phar://' . $fname;
15 $phar = new Phar($fname);
18 $phar['a'] = 'hi';
20 $phar['b'] = 'hi2';
21 $phar['c'] = 'hi3';
22 $phar['b']->chmod(0444);
24 $phar->setAlias("hime");
25 unset($phar);
[all …]
H A D033a.phpt4 phar
6 phar.readonly=0
7 phar.require_hash=0
18 $alias = 'phar://hio';
20 $phar = new Phar($fname);
22 $phar->setAlias('hio');
23 $phar->addEmptyDir('test');
24 $phar->stopBuffering();
25 ini_set('phar.readonly', 1);
29 $phar['a.php']->chmod(0777);
[all …]
/php-src/ext/phar/tests/
H A Dphar_convert_repeated.phpt4 phar
6 phar.require_hash=0
7 phar.readonly=0
12 $pname = 'phar://' . $fname;
26 $phar = new Phar($fname);
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.phpt4 phar
6 phar.readonly=0
7 phar.require_hash=0
35 mkdir('phar://' . __DIR__ . '/ok.phar/fails');
36 mkdir('phar://' . __DIR__ . '/ok.phar/fails');
38 mkdir('phar://' . __DIR__ . '/ok.phar/sub');
39 mkdir('phar://' . __DIR__ . '/ok.phar/sub/directory.txt');
41 mkdir('phar://' . __DIR__ . '/oops.phar/fails');
43 mkdir('phar://');
45 rmdir('phar://' . __DIR__ . '/unknown.phar/hi');
[all …]
H A Dfopen_edgecases.phpt4 phar
6 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');
76 …(phar://%sfopen_edgecases.phar.php.phar.gz): Failed to open stream: phar error: invalid url or non…
105 Warning: unlink(): phar error: invalid url or non-existent phar "phar://foo.phar" in %sfopen_edgeca…
[all …]
H A Dphar_convert_repeated_b.phpt4 phar
7 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);
[all …]
H A Dphar_isvalidpharfilename.phpt4 phar
6 phar.readonly=1
41 echo "\n.phar.phar\n";
42 var_dump(Phar::isValidPharFilename('.phar.phar'));
62 var_dump(Phar::isValidPharFilename('phar.zip.phar'));
81 boo.phar
101 .phar.tar
106 .phar.phar
111 .phar.phart
121 phar.zip
[all …]
H A Dbug47085.phpt4 phar
6 phar.require_hash=0
7 phar.readonly=0
10 $fname = __DIR__ . '/' . 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"));
19 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar');?>
[all …]
H A Dphar_offset_check.phpt4 phar
6 phar.readonly=0
7 phar.require_hash=1
21 $phar->offsetGet('.phar/stub.php');
27 $phar->offsetGet('.phar/alias.txt');
33 $phar->offsetSet('.phar/stub.php', '<?php __HALT_COMPILER(); ?>');
41 $phar->offsetUnset('.phar/stub.php');
49 $phar->offsetSet('.phar/alias.txt', 'dolly');
57 $phar->offsetUnset('.phar/alias.txt');
70 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
4 phar
6 phar.readonly=0
12 mkdir('phar://');
13 mkdir('phar://foo.phar');
17 rmdir('phar://');
18 rmdir('phar://foo.phar');
34 Warning: mkdir(): phar error: cannot create directory "phar://", no phar archive specified in %smkd…
36 Warning: mkdir(): phar error: cannot create directory "" in phar "foo.phar", phar error: invalid pa…
38 Warning: mkdir(): phar error: cannot create directory "a" in phar "%smkdir.phar.php", phar error: p…
[all …]
H A Dzf_test.phpt4 phar
7 phar.readonly=0
8 phar.require_hash=0
19 $phar = $phar->convertToExecutable();
22 $phar->startBuffering();
23 $phar->setStub("<?php
30 $phar->stopBuffering();
43 phar://%szfapp.phar.tar.gz/application/default/controllers/ErrorController.php
44 phar://%szfapp.phar.tar.gz/application/default/controllers/IndexController.php
47 phar://%szfapp.phar.tar.gz/html/.htaccess
[all …]
H A Dini_set_off.phpt4 phar
6 phar.require_hash=0
7 phar.readonly=0
11 var_dump(ini_set('phar.readonly', 1));
13 var_dump(ini_get('phar.readonly'));
14 ini_set('phar.require_hash', 0);
15 ini_set('phar.readonly', 0);
25 ini_set('phar.require_hash', 0);
26 ini_set('phar.readonly', 0);
35 ini_set('phar.require_hash', 0);
[all …]
H A Dbug65414.phpt2 Bug #65414 Injection (A1) in .phar files magic .phar directory
4 phar
6 phar.readonly = 0
9 $phar = new \Phar(__DIR__ . '/bug65414.phar', 0, 'bug65414.phar');
11 '.phar/injected-1.txt',
12 '/.phar/injected-2.txt',
14 '/.phar/',
28 .phar/injected-1.txt:Cannot create any files in magic ".phar" directory
29 /.phar/injected-2.txt:Cannot create any files in magic ".phar" directory
30 //.phar/injected-3.txt:Entry //.phar/injected-3.txt does not exist and cannot be created: phar erro…
[all …]
H A Dopendir.phpt4 phar
6 phar.require_hash=1
7 phar.readonly=0
10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php';
25 set_include_path("phar://" . __FILE__);
30 opendir('phar://');
31 opendir('phar://hi.phar');
38phar://): Failed to open directory: phar error: no directory in "phar://", must have at least phar
39 phar url "phar://" is unknown in %sopendir.php on line %d
41 Warning: opendir(phar://hi.phar): Failed to open directory: phar error: invalid url or non-existent…
[all …]

Completed in 56 milliseconds

12345678910>>...29