Lines Matching refs:phar
5 if (!extension_loaded("phar")) die("skip");
9 phar.require_hash=0
10 phar.readonly=0
13 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
14 $pname = 'phar://' . $fname;
28 $phar = new Phar($fname);
29 var_dump($phar->getMetadata());
30 $phar->setMetadata(array('my' => 'friend'));
31 $phar->setMetadata(array('my' => 'friend'));
32 var_dump($phar->getMetadata());
33 $phar['a']->setMetadata(42);
34 $phar['b']->setMetadata(NULL);
35 $phar['c']->setMetadata(array(25, 'foo'=>'bar'));
36 $phar['d']->setMetadata(true);
39 var_dump($phar[$name]->getMetadata());
42 unset($phar);
50 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>