Lines Matching refs:phar
4 <?php if (!extension_loaded("phar")) die("skip"); ?>
8 phar.require_hash=0
9 phar.readonly=0
13 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar';
15 $pname = 'phar://' . $fname;
26 $phar = new Phar($fname);
27 $zip = $phar->convertToData(Phar::ZIP);
29 $tgz = $phar->convertToData(Phar::TAR, Phar::GZ);
31 $tbz = $phar->convertToData(Phar::TAR, Phar::BZ2);
34 $phar = $tbz->convertToExecutable(Phar::PHAR, Phar::NONE);
40 $phar = $tbz->convertToExecutable(Phar::PHAR, Phar::NONE);
41 echo $phar->getPath() . "\n";
42 $phar['a'] = 'hi';
43 $phar['a']->setMetadata('hi');
44 $zip = $phar->convertToExecutable(Phar::ZIP);
65 $tar = $phar->convertToExecutable(Phar::TAR);
87 $phar->convertToData();
138 $tgz->convertToData(Phar::TAR, Phar::GZ, '.phar.tgz.oops');
144 $phar->convertToExecutable(Phar::TAR, Phar::GZ, '.tgz.oops');
150 $tgz->convertToData(Phar::TAR, Phar::GZ, '.phar/.tgz.oops');
158 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
159 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
160 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar.gz');
166 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '2.phar');
167 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '2.phar.tar');
169 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '2.phar.zip');
171 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '2.phar.tar.gz');
178 Unable to add newly converted phar "%sphar_convert_again.phar" to the list of phars, a phar with th…
179 %sphar_convert_again2.phar
180 %sphar_convert_again2.phar.zip
186 %sphar_convert_again2.phar.tar
188 %sphar_convert_again2.phar.tar.gz
192 Cannot write out data phar archive, use Phar::TAR or Phar::ZIP
193 Cannot write out data phar archive, use Phar::TAR or Phar::ZIP
202 data phar "%sphar_convert_again2.phar.tgz.oops" has invalid extension phar.tgz.oops
203 phar "%sphar_convert_again2.tgz.oops" has invalid extension tgz.oops
204 data phar "%sphar_convert_again2.phar/.tgz.oops" has invalid extension phar/.tgz.oops