xref: /PHP-8.1/ext/phar/tests/bug70433.phpt (revision 39131219)
1--TEST--
2Phar - bug #70433 - Uninitialized pointer in phar_make_dirstream when zip entry filename is "/"
3--EXTENSIONS--
4phar
5zlib
6--FILE--
7<?php
8$phar = new PharData(__DIR__."/bug70433.zip");
9var_dump($phar);
10$meta = $phar->getMetadata();
11var_dump($meta);
12?>
13DONE
14--EXPECT--
15object(PharData)#1 (3) {
16  ["pathName":"SplFileInfo":private]=>
17  string(0) ""
18  ["glob":"DirectoryIterator":private]=>
19  bool(false)
20  ["subPathName":"RecursiveDirectoryIterator":private]=>
21  string(0) ""
22}
23NULL
24DONE
25