1--TEST--
2Phar: create new Phar with broken.dirname in path
3--EXTENSIONS--
4phar
5--INI--
6default_charset=
7phar.readonly=0
8phar.require_hash=0
9--FILE--
10<?php
11
12$dir = __DIR__ . '/broken.dirname';
13mkdir($dir, 0777);
14
15$fname = $dir . '/dotted_path.phar';
16$stub = Phar::createDefaultStub();
17$file = $stub;
18
19$files = array();
20$files['a'] = 'this is a';
21$files['b'] = 'this is b';
22
23include 'files/phar_test.inc';
24
25$phar = new Phar($fname);
26
27foreach ($phar as $entry) {
28    echo file_get_contents($entry)."\n";
29}
30
31?>
32--CLEAN--
33<?php
34unlink(__DIR__ . '/broken.dirname/dotted_path.phar');
35rmdir(__DIR__ . '/broken.dirname');
36?>
37--EXPECT--
38this is a
39this is b
40