Lines Matching refs:phar
4 <?php if (!extension_loaded("phar")) die("skip"); ?>
7 phar.readonly=1
14 $phar = new PharData($fname);
15 $phar['a'] = 'a';
16 $phar['b'] = 'b';
17 $phar['c'] = 'c';
19 var_dump($phar->isFileFormat(Phar::PHAR));
20 var_dump($phar->isFileFormat(Phar::TAR));
21 var_dump($phar->isFileFormat(Phar::ZIP));
22 var_dump($phar->getStub());
23 var_dump($phar->getAlias());
27 $phar = $phar->convertToData(Phar::TAR);
28 var_dump($phar->isFileFormat(Phar::PHAR));
29 var_dump($phar->isFileFormat(Phar::TAR));
30 var_dump($phar->isFileFormat(Phar::ZIP));
31 var_dump($phar->getStub());
32 var_dump($phar->getAlias());
36 $phar = $phar->convertToData(Phar::ZIP, Phar::NONE, '.1.zip');
37 var_dump($phar->isFileFormat(Phar::PHAR));
38 var_dump($phar->isFileFormat(Phar::TAR));
39 var_dump($phar->isFileFormat(Phar::ZIP));
40 var_dump($phar->getStub());
41 var_dump($phar->getAlias());
46 $phar = $phar->convertToExecutable(Phar::PHAR);
47 var_dump($phar->isFileFormat(Phar::PHAR));
48 var_dump($phar->isFileFormat(Phar::TAR));
49 var_dump($phar->isFileFormat(Phar::ZIP));
50 var_dump(strlen($phar->getStub()));
51 var_dump($phar->getAlias());
58 $phar = $phar->convertToData(Phar::TAR, Phar::GZ, '.2.tar');
59 var_dump($phar->isFileFormat(Phar::PHAR));
60 var_dump($phar->isFileFormat(Phar::TAR));
61 var_dump($phar->isFileFormat(Phar::ZIP));
62 var_dump($phar->getStub());
63 var_dump($phar->getAlias());
68 $phar = $phar->convertToExecutable(Phar::PHAR);
69 var_dump($phar->isFileFormat(Phar::PHAR));
70 var_dump($phar->isFileFormat(Phar::TAR));
71 var_dump($phar->isFileFormat(Phar::ZIP));
72 var_dump(strlen($phar->getStub()));
73 var_dump($phar->getAlias());
81 echo dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.gz' . "\n";
83 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.gz');
111 Cannot write out executable phar archive, phar is read-only
119 Cannot write out executable phar archive, phar is read-only