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.zip';
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']->isExecutable());
29 $phar['test']->chmod(0777);
30 var_dump($phar['test']->isExecutable());
31 $phar['test']->chmod(0666);
32 var_dump($phar['test']->isExecutable());
40 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
44 Cannot modify permissions for file "a.php" in phar "%sa.phar.zip", write operations are prohibited