diff options
Diffstat (limited to 'ext/phar/tests/024.phpt')
-rwxr-xr-x | ext/phar/tests/024.phpt | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/ext/phar/tests/024.phpt b/ext/phar/tests/024.phpt deleted file mode 100755 index 243e70c6c8..0000000000 --- a/ext/phar/tests/024.phpt +++ /dev/null @@ -1,40 +0,0 @@ ---TEST-- -Phar: phar:// include ---SKIPIF-- -<?php if (!extension_loaded("phar")) print "skip"; ?> ---FILE-- -<?php -$file = "<?php __HALT_COMPILER(); ?>"; - -$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"; ?>'; -$manifest = ''; -foreach($files as $name => $cont) { - $len = strlen($cont); - $manifest .= pack('V', strlen($name)) . $name . pack('VVVVC', $len, time(), $len, crc32($cont), 0x00); -} -$alias = ''; -$manifest = pack('VnV', count($files), 0x0800, strlen($alias)) . $alias . $manifest; -$file .= pack('V', strlen($manifest)) . $manifest; -foreach($files as $cont) -{ - $file .= $cont; -} - -file_put_contents(dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php', $file); - -include 'phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php/a.php'; -include 'phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php/b.php'; -include 'phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php/b/c.php'; - -?> -===DONE=== ---CLEAN-- -<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?> ---EXPECT-- -This is a -This is b -This is b/c -===DONE=== |