xref: /php-src/ext/phar/tests/gh17137.phpt (revision 142f85e2)
1--TEST--
2GH-17137 (Segmentation fault ext/phar/phar.c)
3--EXTENSIONS--
4phar
5--INI--
6phar.readonly=0
7--FILE--
8<?php
9$file = __DIR__ . DIRECTORY_SEPARATOR . 'gh17137.phar';
10$phar = new Phar($file);
11var_dump($phar, $phar->decompress());
12echo "OK\n";
13?>
14--EXPECTF--
15object(Phar)#%d (3) {
16  ["pathName":"SplFileInfo":private]=>
17  string(0) ""
18  ["glob":"DirectoryIterator":private]=>
19  bool(false)
20  ["subPathName":"RecursiveDirectoryIterator":private]=>
21  string(0) ""
22}
23object(Phar)#%d (3) {
24  ["pathName":"SplFileInfo":private]=>
25  string(0) ""
26  ["glob":"DirectoryIterator":private]=>
27  bool(false)
28  ["subPathName":"RecursiveDirectoryIterator":private]=>
29  string(0) ""
30}
31OK
32