/PHP-7.2/ext/phar/ |
H A D | Makefile.frag | 9 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 36 $(builddir)/phar.phar: $(builddir)/phar.php $(builddir)/phar/phar.inc $(srcdir)/phar/*.inc $(srcdir… 38 -@rm -f $(builddir)/phar.phar 39 -@rm -f $(srcdir)/phar.phar 40 …phar.php pack -f $(builddir)/phar.phar -a pharcommand -c auto -x \\.svn -p 0 -s $(srcdir)/phar/pha… 41 -@chmod +x $(builddir)/phar.phar 47 $(LN_S) -f phar.phar $(INSTALL_ROOT)$(bindir)/phar [all …]
|
/PHP-7.2/ext/phar/tests/tar/ |
H A D | phar_buildfromiterator8.phpt | 6 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 D | phar_convert_phar4.phpt | 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'; 30 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::GZ); [all …]
|
H A D | phar_convert_phar.phpt | 6 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 D | phar_convert_phar2.phpt | 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); 29 var_dump($phar->isCompressed()); [all …]
|
H A D | phar_convert_phar3.phpt | 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); 29 var_dump($phar->isCompressed()); [all …]
|
H A D | 033a.phpt | 6 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 D | bug49910.phpt | 2 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.2/ext/phar/tests/zip/ |
H A D | phar_buildfromiterator8.phpt | 6 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 D | getalias.phpt | 6 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 D | phar_convert_phar.phpt | 6 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 D | 033a.phpt | 6 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 D | all.phpt | 11 phar.readonly=0 16 $pname = 'phar://' . $fname; 20 $phar = new Phar($fname); 23 $phar['a'] = 'hi'; 25 $phar['b'] = 'hi2'; 27 $phar['c'] = 'hi3'; 29 $phar['b']->chmod(0444); 31 $phar->setAlias("hime"); 32 unset($phar); 38 var_dump($phar['a']->getContent(), $phar['b']->getContent(), $phar['c']->getContent()); [all …]
|
/PHP-7.2/ext/phar/tests/ |
H A D | fopen_edgecases.phpt | 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'); 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 D | phar_convert_repeated.phpt | 6 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 D | dir.phpt | 6 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 D | phar_convert_repeated_b.phpt | 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); 111 Cannot write out executable phar archive, phar is read-only [all …]
|
H A D | bug47085.phpt | 4 <?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 D | phar_isvalidpharfilename.phpt | 6 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 D | phar_offset_check.phpt | 7 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 D | mkdir.phpt | 2 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 D | ini_set_off.phpt | 8 phar.require_hash=0 9 phar.readonly=0 13 var_dump(ini_set('phar.readonly', 1)); 15 var_dump(ini_get('phar.readonly')); 16 ini_set('phar.require_hash', 0); 17 ini_set('phar.readonly', 0); 25 var_dump(ini_get('phar.readonly')); 27 ini_set('phar.require_hash', 0); 28 ini_set('phar.readonly', 0); 37 ini_set('phar.require_hash', 0); [all …]
|
H A D | bug65414.phpt | 2 Bug #65414 Injection (A1) in .phar files magic .phar directory 6 phar.readonly = 0 9 $phar = new \Phar(__DIR__ . '/bug65414.phar', 0, 'bug65414.phar'); 11 '.phar/injected-1.txt', 12 '/.phar/injected-2.txt', 13 '//.phar/injected-3.txt', 14 '/.phar/', 32 .phar/injected-1.txt:Cannot create any files in magic ".phar" directory 33 /.phar/injected-2.txt:Cannot create any files in magic ".phar" directory 34 //.phar/injected-3.txt:Entry //.phar/injected-3.txt does not exist and cannot be created: phar erro… [all …]
|
H A D | zf_test.phpt | 7 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 D | opendir.phpt | 4 <?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 …]
|