Lines Matching refs:phar

4 <?php if (!extension_loaded("phar")) die("skip"); ?>
6 phar.require_hash=0
7 phar.readonly=0
11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar';
12 $pname = 'phar://' . $fname;
13 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip';
14 $fname3 = dirname(__FILE__) . '/' . 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());
91 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
92 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
93 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
94 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.phar.zip');
95 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.phar.tar');
96 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.phar');
97 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.3.phar.zip');
98 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.3.phar.tar');
99 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.3.phar');
112 string(60) "<?php // tar-based phar archive stub file
114 string(%d) "%sphar_convert_repeated.phar.tar"
119 string(60) "<?php // zip-based phar archive stub file
132 string(60) "<?php // zip-based phar archive stub file
139 string(60) "<?php // tar-based phar archive stub file
146 string(60) "<?php // zip-based phar archive stub file