Lines Matching refs:phar

4 phar
6 phar.require_hash=0
7 phar.readonly=0
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar';
12 $pname = 'phar://' . $fname;
13 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
14 $fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar';
26 $phar = new Phar($fname);
27 var_dump($phar->isFileFormat(Phar::PHAR));
28 var_dump($phar->isFileFormat(Phar::TAR));
29 var_dump($phar->isFileFormat(Phar::ZIP));
30 var_dump($phar->getStub());
31 var_dump($phar->getAlias());
35 $phar = $phar->convertToExecutable(Phar::TAR);
36 var_dump($phar->isFileFormat(Phar::PHAR));
37 var_dump($phar->isFileFormat(Phar::TAR));
38 var_dump($phar->isFileFormat(Phar::ZIP));
39 var_dump($phar->getStub());
40 var_dump($phar->getAlias());
44 $phar = $phar->convertToExecutable(Phar::ZIP);
45 var_dump($phar->isFileFormat(Phar::PHAR));
46 var_dump($phar->isFileFormat(Phar::TAR));
47 var_dump($phar->isFileFormat(Phar::ZIP));
48 var_dump($phar->getStub());
49 var_dump($phar->getAlias());
53 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::NONE, '.2.phar');
54 var_dump($phar->isFileFormat(Phar::PHAR));
55 var_dump($phar->isFileFormat(Phar::TAR));
56 var_dump($phar->isFileFormat(Phar::ZIP));
57 var_dump(strlen($phar->getStub()));
58 var_dump($phar->getAlias());
62 $phar = $phar->convertToExecutable(Phar::ZIP, Phar::NONE, '.2.phar.zip');
63 var_dump($phar->isFileFormat(Phar::PHAR));
64 var_dump($phar->isFileFormat(Phar::TAR));
65 var_dump($phar->isFileFormat(Phar::ZIP));
66 var_dump($phar->getStub());
67 var_dump($phar->getAlias());
71 $phar = $phar->convertToExecutable(Phar::TAR, Phar::NONE, '2.phar.tar');
72 var_dump($phar->isFileFormat(Phar::PHAR));
73 var_dump($phar->isFileFormat(Phar::TAR));
74 var_dump($phar->isFileFormat(Phar::ZIP));
75 var_dump($phar->getStub());
76 var_dump($phar->getAlias());
80 $phar = $phar->convertToExecutable(Phar::ZIP, Phar::NONE, '3.phar.zip');
81 var_dump($phar->isFileFormat(Phar::PHAR));
82 var_dump($phar->isFileFormat(Phar::TAR));
83 var_dump($phar->isFileFormat(Phar::ZIP));
84 var_dump($phar->getStub());
85 var_dump($phar->getAlias());
90 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
91 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
92 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar');
93 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.2.phar.zip');
94 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.2.2.phar.tar');
95 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar');
96 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.2.2.3.phar.zip');
109 string(60) "<?php // tar-based phar archive stub file
111 string(%d) "%sphar_convert_repeated.phar.tar"
116 string(60) "<?php // zip-based phar archive stub file
129 string(60) "<?php // zip-based phar archive stub file
136 string(60) "<?php // tar-based phar archive stub file
143 string(60) "<?php // zip-based phar archive stub file