2006-01-06 16:11:54 +00:00
|
|
|
--TEST--
|
2006-01-11 00:50:33 +00:00
|
|
|
Phar: phar:// include
|
2006-01-06 16:11:54 +00:00
|
|
|
--SKIPIF--
|
2008-01-04 16:26:44 +00:00
|
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
2007-01-08 23:03:41 +00:00
|
|
|
--INI--
|
|
|
|
phar.require_hash=0
|
2006-01-06 16:11:54 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2007-01-13 16:17:04 +00:00
|
|
|
$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
|
|
|
|
$pname = 'phar://' . $fname;
|
2008-08-01 13:36:19 +00:00
|
|
|
$file = "<?php __HALT_COMPILER(); ?>";
|
2006-01-06 16:11:54 +00:00
|
|
|
|
2006-01-11 00:50:33 +00:00
|
|
|
$files = array();
|
|
|
|
$files['a.php'] = '<?php echo "This is a\n"; ?>';
|
|
|
|
$files['b.php'] = '<?php echo "This is b\n"; ?>';
|
|
|
|
$files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
|
2006-01-06 16:11:54 +00:00
|
|
|
|
2008-02-20 13:11:40 +00:00
|
|
|
include 'files/phar_test.inc';
|
2006-01-06 16:11:54 +00:00
|
|
|
|
2007-01-13 16:17:04 +00:00
|
|
|
include $pname . '/a.php';
|
|
|
|
include $pname . '/b.php';
|
|
|
|
include $pname . '/b/c.php';
|
2006-01-06 16:11:54 +00:00
|
|
|
|
|
|
|
?>
|
|
|
|
===DONE===
|
|
|
|
--CLEAN--
|
|
|
|
<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
|
|
|
|
--EXPECT--
|
|
|
|
This is a
|
|
|
|
This is b
|
|
|
|
This is b/c
|
|
|
|
===DONE===
|