xref: /PHP-8.2/ext/phar/tests/bug71391.phpt (revision 74859783)
1--TEST--
2Phar: bug #71391: NULL Pointer Dereference in phar_tar_setupmetadata()
3--EXTENSIONS--
4phar
5--FILE--
6<?php
7// duplicate since the tar will change
8copy(__DIR__."/bug71391.tar", __DIR__."/bug71391.test.tar");
9$p = new PharData(__DIR__."/bug71391.test.tar");
10$p->delMetaData();
11?>
12DONE
13--CLEAN--
14<?php
15unlink(__DIR__."/bug71391.test.tar");
16?>
17--EXPECT--
18DONE
19