Lines Matching refs:phar
2 Phar: Phar::extractTo() - .phar safety
4 <?php if (!extension_loaded("phar")) die("skip"); ?>
6 phar.readonly=0
10 $fname = dirname(__FILE__) . '/tempmanifest2.phar.php';
11 $pname = 'phar://' . $fname;
13 $phar = new Phar($fname);
14 $phar->setDefaultStub();
15 $phar->setAlias('fred');
16 $phar['file1.txt'] = 'hi';
17 $phar['file2.txt'] = 'hi2';
18 $phar['subdir/ectory/file.txt'] = 'hi3';
19 $phar->mount($pname . '/mount2', __FILE__);
20 $phar->addEmptyDir('one/level');
22 $phar->extractTo(dirname(__FILE__) . '/extract2', 'mount2');
23 $phar->extractTo(dirname(__FILE__) . '/extract2');
40 @unlink(dirname(__FILE__) . '/tempmanifest2.phar.php');