Lines Matching refs:phar
4 <?php if (!extension_loaded("phar")) die("skip"); ?>
6 phar.readonly=0
7 phar.require_hash=0
11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar';
12 $alias = 'phar://hio';
14 $phar = new Phar($fname);
15 $phar['a.php'] = '<?php echo "This is a\n"; include "'.$alias.'/b.php"; ?>';
16 $phar->setAlias('hio');
17 $phar->addEmptyDir('test');
18 $phar->stopBuffering();
19 ini_set('phar.readonly', 1);
22 var_dump($phar['a.php']->isExecutable());
23 $phar['a.php']->chmod(0777);
24 var_dump($phar['a.php']->isExecutable());
25 $phar['a.php']->chmod(0666);
26 var_dump($phar['a.php']->isExecutable());
28 var_dump($phar['test']->isReadable());
29 $phar['test']->chmod(0000);
30 var_dump($phar['test']->isReadable());
31 $phar['test']->chmod(0666);
32 var_dump($phar['test']->isReadable());
40 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
44 Cannot modify permissions for file "a.php" in phar "%s033a.phar.tar", write operations are prohibit…