Lines Matching refs:phar
4 phar
6 phar.readonly=0
7 phar.require_hash=0
10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php';
11 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.php';
12 $fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.3.phar.php';
13 $pname = 'phar://' . $fname;
14 $pname2 = 'phar://' . $fname2;
15 $pname3 = 'phar://' . $fname3;
19 file_put_contents('phar://fopen_edgetest.phar/hi', 'hi');
23 $a = fopen($pname . '.phar.gz', 'r');
25 var_dump(file_exists($pname . '.phar.gz/hi'));
26 // test open for write with new phar
29 // test open for write with corrupted phar
32 $a = fopen('phar://', 'r');
33 $a = fopen('phar://foo.phar', 'r');
41 var_dump(stat('phar://'));
42 var_dump(stat('phar://foo.phar'));
45 // this tests coverage of the case where the phar exists and has no files
46 $phar = new Phar($fname3);
50 unlink('phar://');
51 unlink('phar://foo.phar');
54 rename('phar://', 'phar://');
55 rename($pname . '/hi', 'phar://');
56 rename('phar://foo.phar/hi', 'phar://');
57 rename($pname . '/hi', 'phar://foo.phar/hi');
59 ini_set('phar.readonly', 1);
61 ini_set('phar.readonly', 0);
70 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
71 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.php'); ?>
72 <?php unlink(__DIR__ . '/fopen_edgetest.phar'); ?>
74 Warning: fopen(phar://%sfopen_edgecases.phar.php/b/c.php): Failed to open stream: phar error: open …
76 …(phar://%sfopen_edgecases.phar.php.phar.gz): Failed to open stream: phar error: invalid url or non…
79 Warning: fopen(phar://%sfopen_edgecases.2.phar.php/hi): Failed to open stream: internal corruption …
81 …phar://): Failed to open stream: phar error: no directory in "phar://", must have at least phar://…
83 Warning: fopen(phar://foo.phar): Failed to open stream: %s in %sfopen_edgecases.php on line %d
89 Warning: stat(): stat failed for phar:// in %sfopen_edgecases.php on line %d
92 Warning: stat(): stat failed for phar://foo.phar in %sfopen_edgecases.php on line %d
97 Warning: unlink(): internal corruption of phar "%sfopen_edgecases.2.phar.php" (truncated manifest a…
99 Warning: unlink(): phar error: unlink failed in %sfopen_edgecases.php on line %d
101 …ning: unlink(): phar error: no directory in "phar://", must have at least phar:/// for root direct…
103 Warning: unlink(): phar error: unlink failed in %sfopen_edgecases.php on line %d
105 Warning: unlink(): phar error: invalid url or non-existent phar "phar://foo.phar" in %sfopen_edgeca…
107 Warning: unlink(): phar error: unlink failed in %sfopen_edgecases.php on line %d
109 Warning: unlink(): unlink of "phar://%sfopen_edgecases.phar.php/oops" failed, file does not exist i…
111 Warning: rename(): phar error: cannot rename "phar://" to "phar://": invalid or non-writable url "p…
113 Warning: rename(): phar error: cannot rename "phar://%sfopen_edgecases.phar.php/hi" to "phar://": i…
115 Warning: rename(): phar error: cannot rename "phar://foo.phar/hi" to "phar://": invalid or non-writ…
117 Warning: rename(): phar error: cannot rename "phar://%sfopen_edgecases.phar.php/hi" to "phar://foo.…
119 …phar error: cannot rename "phar://%sfopen_edgecases.phar.php/hi" to "phar://%sfopen_edgecases.phar…
121 …und.php): Failed to open stream: No such file or directory in phar://%sfopen_edgecases.phar.php/te…