xref: /PHP-5.6/ext/phar/tests/bug71391.phpt (revision 1c1b8b69)
1--TEST--
2Phar: bug #71391: NULL Pointer Dereference in phar_tar_setupmetadata()
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
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