1--TEST-- 2Bug #49910: no support for ././@LongLink for long filenames in phar tar support 3--SKIPIF-- 4<?php if (!extension_loaded("phar")) die("skip"); ?> 5<?php if (!extension_loaded("zlib")) die("skip"); ?> 6--FILE-- 7<?php 8$fname = str_replace('\\', '/', __DIR__ . '/files/Structures_Graph-1.0.3.tgz'); 9$tar = new PharData($fname); 10$files = array(); 11foreach (new RecursiveIteratorIterator($tar) as $file) { 12 $files[] = str_replace($fname, '*', $file->getPathName()); 13} 14print_r($files); 15?> 16===DONE=== 17--EXPECT-- 18Array 19( 20 [0] => phar://*/Structures_Graph-1.0.3/LICENSE 21 [1] => phar://*/Structures_Graph-1.0.3/Structures/Graph/Manipulator/AcyclicTest.php 22 [2] => phar://*/Structures_Graph-1.0.3/Structures/Graph/Manipulator/TopologicalSorter.php 23 [3] => phar://*/Structures_Graph-1.0.3/Structures/Graph/Node.php 24 [4] => phar://*/Structures_Graph-1.0.3/Structures/Graph.php 25 [5] => phar://*/Structures_Graph-1.0.3/docs/generate.sh 26 [6] => phar://*/Structures_Graph-1.0.3/docs/html/Structures_Graph/Structures_Graph.html 27 [7] => phar://*/Structures_Graph-1.0.3/docs/html/Structures_Graph/Structures_Graph_Manipulator_AcyclicTest.html 28 [8] => phar://*/Structures_Graph-1.0.3/docs/html/Structures_Graph/Structures_Graph_Manipulator_TopologicalSorter.html 29 [9] => phar://*/Structures_Graph-1.0.3/docs/html/Structures_Graph/Structures_Graph_Node.html 30 [10] => phar://*/Structures_Graph-1.0.3/docs/html/Structures_Graph/_Structures_Graph_Manipulator_AcyclicTest_php.html 31 [11] => phar://*/Structures_Graph-1.0.3/docs/html/Structures_Graph/_Structures_Graph_Manipulator_TopologicalSorter_php.html 32 [12] => phar://*/Structures_Graph-1.0.3/docs/html/Structures_Graph/_Structures_Graph_Node_php.html 33 [13] => phar://*/Structures_Graph-1.0.3/docs/html/Structures_Graph/_Structures_Graph_php.html 34 [14] => phar://*/Structures_Graph-1.0.3/docs/html/Structures_Graph/tutorial_Structures_Graph.pkg.html 35 [15] => phar://*/Structures_Graph-1.0.3/docs/html/classtrees_Structures_Graph.html 36 [16] => phar://*/Structures_Graph-1.0.3/docs/html/elementindex.html 37 [17] => phar://*/Structures_Graph-1.0.3/docs/html/elementindex_Structures_Graph.html 38 [18] => phar://*/Structures_Graph-1.0.3/docs/html/errors.html 39 [19] => phar://*/Structures_Graph-1.0.3/docs/html/index.html 40 [20] => phar://*/Structures_Graph-1.0.3/docs/html/li_Structures_Graph.html 41 [21] => phar://*/Structures_Graph-1.0.3/docs/html/media/banner.css 42 [22] => phar://*/Structures_Graph-1.0.3/docs/html/media/stylesheet.css 43 [23] => phar://*/Structures_Graph-1.0.3/docs/html/packages.html 44 [24] => phar://*/Structures_Graph-1.0.3/docs/html/todolist.html 45 [25] => phar://*/Structures_Graph-1.0.3/docs/tutorials/Structures_Graph/Structures_Graph.pkg 46 [26] => phar://*/Structures_Graph-1.0.3/tests/AllTests.php 47 [27] => phar://*/Structures_Graph-1.0.3/tests/testCase/BasicGraph.php 48 [28] => phar://*/package.xml 49) 50===DONE=== 51