Lines Matching refs:phar
4 phar
6 phar.readonly=0
7 phar.require_hash=0
10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php';
11 $pname = 'phar://' . $fname;
12 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.1.phar.php';
13 $pname2 = 'phar://' . $fname2;
14 $fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.php';
15 $pname3 = 'phar://' . $fname3;
16 $phar = new Phar($fname);
17 var_dump($phar->isFileFormat(Phar::PHAR));
19 $phar->addEmptyDir('test');
20 var_dump($phar['test']->isDir());
21 var_dump($phar['test/']->isDir());
24 var_dump($phar['another/dir']->isDir());
31 ini_set('phar.readonly', 1);
33 ini_set('phar.readonly', 0);
34 // create new phar by mkdir
35 mkdir('phar://' . __DIR__ . '/ok.phar/fails');
36 mkdir('phar://' . __DIR__ . '/ok.phar/fails');
37 file_put_contents('phar://' . __DIR__ . '/ok.phar/sub/directory.txt', 'hi');
38 mkdir('phar://' . __DIR__ . '/ok.phar/sub');
39 mkdir('phar://' . __DIR__ . '/ok.phar/sub/directory.txt');
40 file_put_contents(__DIR__ . '/oops.phar', '<?php this should screw em up __HALT_COMPILER();');
41 mkdir('phar://' . __DIR__ . '/oops.phar/fails');
43 mkdir('phar://');
44 rmdir('phar://');
45 rmdir('phar://' . __DIR__ . '/unknown.phar/hi');
46 ini_set('phar.readonly', 1);
48 ini_set('phar.readonly', 0);
54 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
55 <?php unlink(__DIR__ . '/ok.phar'); ?>
56 <?php unlink(__DIR__ . '/oops.phar'); ?>
57 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.1.phar.php'); ?>
58 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.php'); ?>
68 Warning: mkdir(): phar error: cannot create directory "phar://%sdir.phar.php/fails", write operatio…
70 Warning: mkdir(): phar error: cannot create directory "fails" in phar "%sok.phar", directory alread…
72 Warning: mkdir(): phar error: cannot create directory "sub" in phar "%sok.phar", directory already …
74 Warning: mkdir(): phar error: cannot create directory "sub/directory.txt" in phar "%sok.phar", phar…
76 Warning: mkdir(): internal corruption of phar "%soops.phar" (truncated manifest at stub end) in %sd…
78 Warning: mkdir(): phar error: cannot create directory "phar://", no phar archive specified in %sdir…
80 Warning: rmdir(): phar error: cannot remove directory "phar://", no phar archive specified, or phar…
82 Warning: rmdir(): phar error: cannot remove directory "hi" in phar "%sunknown.phar", directory does…
84 Warning: rmdir(): phar error: cannot rmdir directory "phar://%sdir.phar.php/another/dir", write ope…
86 Warning: rmdir(): phar error: cannot remove directory "" in phar "%sdir.phar.php", directory does n…
88 Warning: rmdir(): phar error: cannot remove directory "" in phar "%sdir.phar.php", directory does n…
90 Warning: mkdir(): phar error: cannot create directory "" in phar "%sdir.phar.php", phar error: inva…