Lines Matching refs:phar
4 phar
6 phar.readonly=0
7 phar.require_hash=1
11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php';
12 $pname = 'phar://'.$fname;
14 $phar = new Phar($fname);
15 $phar->setDefaultStub();
16 $phar->setAlias('susan');
17 $phar['a.txt'] = "first file\n";
18 $phar['b.txt'] = "second file\n";
21 $phar->offsetGet('.phar/stub.php');
27 $phar->offsetGet('.phar/alias.txt');
33 $phar->offsetSet('.phar/stub.php', '<?php __HALT_COMPILER(); ?>');
38 var_dump(strlen($phar->getStub()));
41 $phar->offsetUnset('.phar/stub.php');
46 var_dump(strlen($phar->getStub()));
49 $phar->offsetSet('.phar/alias.txt', 'dolly');
54 var_dump($phar->getAlias());
57 $phar->offsetUnset('.phar/alias.txt');
62 var_dump($phar->getAlias());
66 <?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
68 Entry .phar/stub.php does not exist
69 Entry .phar/alias.txt does not exist
70 Cannot set stub ".phar/stub.php" directly in phar "%sphar_offset_check.phar.php", use setStub
73 Cannot set alias ".phar/alias.txt" directly in phar "%sphar_offset_check.phar.php", use setAlias