diff options
Diffstat (limited to 'ext/phar/tests/018.phpt')
-rw-r--r-- | ext/phar/tests/018.phpt | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/ext/phar/tests/018.phpt b/ext/phar/tests/018.phpt deleted file mode 100644 index 83c733437a..0000000000 --- a/ext/phar/tests/018.phpt +++ /dev/null @@ -1,41 +0,0 @@ ---TEST-- -Phar: opendir test, root directory ---SKIPIF-- -<?php if (!extension_loaded("phar")) print "skip"; ?> ---FILE-- -<?php -$file = "<?php -Phar::mapPhar('hio'); -__HALT_COMPILER(); ?>"; - -$files = array(); -$files['a'] = 'a'; -$files['b/a'] = 'b'; -$manifest = ''; -foreach($files as $name => $cont) { - $len = strlen($cont); - $manifest .= pack('V', strlen($name)) . $name . pack('VVVVC', $len, time(), $len, crc32($cont), 0x00); -} -$alias = 'hio'; -$manifest = pack('VnV', count($files), 0x0800, strlen($alias)) . $alias . $manifest; -$file .= pack('V', strlen($manifest)) . $manifest; -foreach($files as $cont) -{ - $file .= chr(0) . chr(4) . chr(0); // 'a' gzdeflated -} - -file_put_contents(dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php', $file); -include dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php'; -$dir = opendir('phar://hio/'); -while (false !== ($a = readdir($dir))) { - var_dump($a); - var_dump(is_dir('phar://hio/' . $a)); -} -?> ---CLEAN-- -<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?> ---EXPECT-- -string(1) "a" -bool(false) -string(1) "b" -bool(true)
\ No newline at end of file |