diff options
Diffstat (limited to 'ext/phar/tests/019b.phpt')
-rwxr-xr-x | ext/phar/tests/019b.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/phar/tests/019b.phpt b/ext/phar/tests/019b.phpt index 218e519379..8c8bb09442 100755 --- a/ext/phar/tests/019b.phpt +++ b/ext/phar/tests/019b.phpt @@ -4,8 +4,6 @@ Phar: opendir test, recurse into <?php if (!extension_loaded("phar")) print "skip"; ?> --FILE-- <?php -function cleanup() { unlink(dirname(__FILE__) . '/008_phar.php'); } -register_shutdown_function('cleanup'); $file = "<?php Phar::mapPhar('hio', true); __HALT_COMPILER(); ?>"; @@ -20,8 +18,8 @@ $file .= pack('VV', strlen($manifest) + 4, 4) . pack('VV', crc32('b'), 1) . 'b'; pack('VV', crc32('c'), 1) . 'c'; pack('VV', crc32('d'), 1) . 'd'; -file_put_contents(dirname(__FILE__) . '/008_phar.php', $file); -include dirname(__FILE__) . '/008_phar.php'; +file_put_contents(dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php', $file); +include dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php'; function dump($phar, $base) { @@ -45,6 +43,8 @@ function dump($phar, $base) dump('phar://hio', '/'); ?> +--CLEAN-- +<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?> --EXPECT-- string(11) "phar://hio/" string(2) "/a" |