Lines Matching refs:phar
4 <?php if (!extension_loaded("phar")) die("skip"); ?>
7 phar.readonly=0
10 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip.php';
11 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip';
12 $pname = 'phar://' . $fname;
13 $pname2 = 'phar://' . $fname2;
15 $phar = new Phar($fname);
16 $phar['a'] = 'a';
17 $phar['b'] = 'b';
18 $phar['c'] = 'c';
21 var_dump($phar['a']->isCompressed());
23 var_dump($phar['b']->isCompressed());
25 var_dump($phar['c']->isCompressed());
27 $phar->compressFiles(Phar::BZ2);
29 var_dump($phar['a']->isCompressed(Phar::GZ));
30 var_dump($phar['a']->isCompressed(Phar::BZ2));
32 var_dump($phar['b']->isCompressed(Phar::GZ));
33 var_dump($phar['b']->isCompressed(Phar::BZ2));
35 var_dump($phar['c']->isCompressed(Phar::GZ));
36 var_dump($phar['b']->isCompressed(Phar::BZ2));
37 $phar['d'] = 'hi'; // increases code coverage by having ufp open
48 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip.php');
49 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');