1--TEST-- 2Phar: PHP bug #46178: "memory leak in ext/phar" 3--SKIPIF-- 4<?php if (!extension_loaded("phar")) die("skip"); ?> 5--INI-- 6phar.require_hash=0 7phar.readonly=0 8--FILE-- 9<?php 10$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar'; 11 12$phar = new Phar($fname); 13$phar['long/path/name.txt'] = 'hi'; 14$phar->addEmptyDir('long/path'); 15?> 16===DONE=== 17--CLEAN-- 18<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');?> 19--EXPECT-- 20===DONE=== 21