xref: /PHP-7.4/ext/phar/tests/bug71331.phpt (revision 9649ca16)
1--TEST--
2Bug #71331 (Uninitialized pointer in phar_make_dirstream())
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--FILE--
6<?php
7$p = new PharData(__DIR__."/bug71331.tar");
8?>
9DONE
10--EXPECTF--
11Fatal error: Uncaught UnexpectedValueException: phar error: "%s%ebug71331.tar" is a corrupted tar file (invalid entry size) in %s%ebug71331.php:2
12Stack trace:
13#0 %s%ebug71331.php(2): PharData->__construct('%s')
14#1 {main}
15  thrown in %s%ebug71331.php on line 2
16