Lines Matching refs:php
4 <?php if (!extension_loaded("phar")) die("skip"); ?>
5 <?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
6 <?php if (version_compare(PHP_VERSION, "5.3", "<")) die("skip requires 5.3 or later"); ?>
11 <?php
12 include dirname(__FILE__) . '/files/tarmaker.php.inc';
13 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar';
18 $tar->addFile('.phar/stub.php', "<?php __HALT_COMPILER(); ?>");
22 $files['a.php'] = '<?php echo "This is a\n"; ?>';
23 $files['b.php'] = '<?php echo "This is b\n"; ?>';
24 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
33 $fp = fopen($alias . '/b/c.php', 'wb');
38 $b = fopen($alias . '/b/c.php', 'rb');
39 $a = $phar['b/c.php'];
44 unlink($alias . '/b/c.php');
47 include $alias . '/b/c.php';
53 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?>
58 string(%d) "phar://%srefcount1.phar.tar/b/c.php"
60 string(%d) "c.php"
65 …g: unlink(): phar error: "b/c.php" in phar "%srefcount1.phar.tar", has open file pointers, cannot …
68 string(%d) "phar://%srefcount1.phar.tar/b/c.php"
70 string(%s) "c.php"