xref: /PHP-8.1/ext/phar/tests/bug71331.phpt (revision 74859783)
1--TEST--
2Bug #71331 (Uninitialized pointer in phar_make_dirstream())
3--EXTENSIONS--
4phar
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