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 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.2.phar.php';
12 $fname3 = dirname(__FILE__) . '/' . 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);
71 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
72 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.phar.php'); ?>
73 <?php unlink(dirname(__FILE__) . '/fopen_edgetest.phar');
75 Warning: fopen(phar://%sfopen_edgecases.phar.php/b/c.php): failed to open stream: phar error: open …
77 …(phar://%sfopen_edgecases.phar.php.phar.gz): failed to open stream: phar error: invalid url or non…
80 Warning: fopen(phar://%sfopen_edgecases.2.phar.php/hi): failed to open stream: internal corruption …
82 …phar://): failed to open stream: phar error: no directory in "phar://", must have at least phar://…
84 Warning: fopen(phar://foo.phar): failed to open stream: %s in %sfopen_edgecases.php on line %d
90 Warning: stat(): stat failed for phar:// in %sfopen_edgecases.php on line %d
93 Warning: stat(): stat failed for phar://foo.phar in %sfopen_edgecases.php on line %d
98 Warning: unlink(): internal corruption of phar "%sfopen_edgecases.2.phar.php" (truncated manifest a…
100 Warning: unlink(): phar error: unlink failed in %sfopen_edgecases.php on line %d
102 …ning: unlink(): phar error: no directory in "phar://", must have at least phar:/// for root direct…
104 Warning: unlink(): phar error: unlink failed in %sfopen_edgecases.php on line %d
106 Warning: unlink(): phar error: invalid url or non-existent phar "phar://foo.phar" in %sfopen_edgeca…
108 Warning: unlink(): phar error: unlink failed in %sfopen_edgecases.php on line %d
110 Warning: unlink(): unlink of "phar://%sfopen_edgecases.phar.php/oops" failed, file does not exist i…
112 Warning: rename(): phar error: cannot rename "phar://" to "phar://": invalid or non-writable url "p…
114 Warning: rename(): phar error: cannot rename "phar://%sfopen_edgecases.phar.php/hi" to "phar://": i…
116 Warning: rename(): phar error: cannot rename "phar://foo.phar/hi" to "phar://": invalid or non-writ…
118 Warning: rename(): phar error: cannot rename "phar://%sfopen_edgecases.phar.php/hi" to "phar://foo.…
120 …phar error: cannot rename "phar://%sfopen_edgecases.phar.php/hi" to "phar://%sfopen_edgecases.phar…
122 …und.php): failed to open stream: No such file or directory in phar://%sfopen_edgecases.phar.php/te…