xref: /PHP-8.2/ext/phar/tests/bug46178.phpt (revision 74859783)
1--TEST--
2Phar: PHP bug #46178: "memory leak in ext/phar"
3--EXTENSIONS--
4phar
5--INI--
6phar.require_hash=0
7phar.readonly=0
8--FILE--
9<?php
10$fname = __DIR__ . '/' . 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(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar');?>
19--EXPECT--
20===DONE===
21