Lines Matching refs:phar
4 phar
6 phar.readonly=0
7 phar.require_hash=0
17 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
18 $alias = 'phar://hio';
20 $phar = new Phar($fname);
21 $phar['a.php'] = '<?php echo "This is a\n"; include "'.$alias.'/b.php"; ?>';
22 $phar->setAlias('hio');
23 $phar->addEmptyDir('test');
24 $phar->stopBuffering();
25 ini_set('phar.readonly', 1);
28 var_dump($phar['a.php']->isExecutable());
29 $phar['a.php']->chmod(0777);
30 var_dump($phar['a.php']->isExecutable());
31 $phar['a.php']->chmod(0666);
32 var_dump($phar['a.php']->isExecutable());
34 var_dump($phar['test']->isExecutable());
35 $phar['test']->chmod(0777);
36 var_dump($phar['test']->isExecutable());
37 $phar['test']->chmod(0666);
38 var_dump($phar['test']->isExecutable());
45 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
49 Cannot modify permissions for file "a.php" in phar "%sa.phar.zip", write operations are prohibited