Lines Matching refs:phar
4 phar
6 phar.require_hash=0
7 phar.readonly=0
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar';
12 $fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar';
13 $fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.3.phar';
15 $phar = new Phar($fname);
16 $phar['a.txt'] = 'some text';
17 $phar->stopBuffering();
18 var_dump($phar->isFileFormat(Phar::TAR));
19 var_dump(strlen($phar->getStub()));
21 $phar = $phar->convertToExecutable(Phar::TAR);
22 var_dump($phar->isFileFormat(Phar::TAR));
23 var_dump($phar->getStub());
25 $phar['a'] = 'hi there';
27 $phar = $phar->convertToExecutable(Phar::PHAR, Phar::NONE, '.3.phar');
28 var_dump($phar->isFileFormat(Phar::PHAR));
29 var_dump(strlen($phar->getStub()));
33 $phar = new Phar($fname2);
34 var_dump($phar->isFileFormat(Phar::PHAR));
35 var_dump(strlen($phar->getStub()));
40 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar');
41 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
42 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar');
43 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.3.phar');
50 string(60) "<?php // tar-based phar archive stub file