Lines Matching refs:phar
4 <?php if (!extension_loaded("phar")) die("skip"); ?>
7 phar.readonly=0
8 phar.require_hash=1
12 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
13 $pname = 'phar://'.$fname;
15 $phar = new Phar($fname);
16 $phar->setDefaultStub();
17 $phar->setAlias('susan');
18 $phar['a.txt'] = "first file\n";
19 $phar['b.txt'] = "second file\n";
22 $phar->offsetGet('.phar/stub.php');
28 $phar->offsetGet('.phar/alias.txt');
34 $phar->offsetSet('.phar/stub.php', '<?php __HALT_COMPILER(); ?>');
39 var_dump(strlen($phar->getStub()));
42 $phar->offsetUnset('.phar/stub.php');
47 var_dump(strlen($phar->getStub()));
50 $phar->offsetSet('.phar/alias.txt', 'dolly');
55 var_dump($phar->getAlias());
58 $phar->offsetUnset('.phar/alias.txt');
63 var_dump($phar->getAlias());
68 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
70 Entry .phar/stub.php does not exist
71 Entry .phar/alias.txt does not exist
72 Cannot set stub ".phar/stub.php" directly in phar "%sphar_offset_check.phar.php", use setStub
75 Cannot set alias ".phar/alias.txt" directly in phar "%sphar_offset_check.phar.php", use setAlias