Lines Matching refs:phar
4 <?php if (!extension_loaded("phar")) die("skip"); ?>
6 phar.readonly=0
7 phar.require_hash=0
10 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
11 $pname = 'phar://' . $fname;
12 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.1.phar.php';
13 $pname2 = 'phar://' . $fname2;
14 $fname3 = dirname(__FILE__) . '/' . 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://' . dirname(__FILE__) . '/ok.phar/fails');
36 mkdir('phar://' . dirname(__FILE__) . '/ok.phar/fails');
37 file_put_contents('phar://' . dirname(__FILE__) . '/ok.phar/sub/directory.txt', 'hi');
38 mkdir('phar://' . dirname(__FILE__) . '/ok.phar/sub');
39 mkdir('phar://' . dirname(__FILE__) . '/ok.phar/sub/directory.txt');
40 file_put_contents(dirname(__FILE__) . '/oops.phar', '<?php this should screw em up __HALT_COMPILER(…
41 mkdir('phar://' . dirname(__FILE__) . '/oops.phar/fails');
43 mkdir('phar://');
44 rmdir('phar://');
45 rmdir('phar://' . dirname(__FILE__) . '/unknown.phar/hi');
46 ini_set('phar.readonly', 1);
48 ini_set('phar.readonly', 0);
55 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
56 <?php unlink(dirname(__FILE__) . '/ok.phar'); ?>
57 <?php unlink(dirname(__FILE__) . '/oops.phar'); ?>
58 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.1.phar.php'); ?>
59 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.phar.php'); ?>
69 Warning: mkdir(): phar error: cannot create directory "phar://%sdir.phar.php/fails", write operatio…
71 Warning: mkdir(): phar error: cannot create directory "fails" in phar "%sok.phar", directory alread…
73 Warning: mkdir(): phar error: cannot create directory "sub" in phar "%sok.phar", directory already …
75 Warning: mkdir(): phar error: cannot create directory "sub/directory.txt" in phar "%sok.phar", phar…
77 Warning: mkdir(): internal corruption of phar "%soops.phar" (truncated manifest at stub end) in %sd…
79 Warning: mkdir(): phar error: cannot create directory "phar://", no phar archive specified in %sdir…
81 Warning: rmdir(): phar error: cannot remove directory "phar://", no phar archive specified, or phar…
83 Warning: rmdir(): phar error: cannot remove directory "hi" in phar "%sunknown.phar", directory does…
85 Warning: rmdir(): phar error: cannot rmdir directory "phar://%sdir.phar.php/another/dir", write ope…
87 Warning: rmdir(): phar error: cannot remove directory "" in phar "%sdir.phar.php", directory does n…
89 Warning: rmdir(): phar error: cannot remove directory "" in phar "%sdir.phar.php", directory does n…
91 Warning: mkdir(): phar error: cannot create directory "" in phar "%sdir.phar.php", phar error: inva…