1--TEST--
2Phar: create new Phar with broken.dirname in path
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--INI--
6default_charset=
7phar.readonly=0
8phar.require_hash=0
9--FILE--
10<?php
11
12$dir = dirname(__FILE__) . '/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===DONE===
33--CLEAN--
34<?php
35unlink(dirname(__FILE__) . '/broken.dirname/dotted_path.phar');
36rmdir(dirname(__FILE__) . '/broken.dirname');
37?>
38--EXPECT--
39this is a
40this is b
41===DONE===
42