1<?php
2$phar = new Phar(__FILE__);
3$d = dirname(__FILE__) . "/copyonwrite5";
4mkdir($d);
5file_put_contents($d . "/file1", "file1\n");
6file_put_contents($d . "/file2", "file2\n");
7$arr = $phar->buildFromDirectory($d);
8ksort($arr);
9var_dump($arr);
10$phar2 = new Phar(__FILE__);
11$arr = array();
12foreach ($phar2 as $name => $file) {
13	$arr[$name] = $file->getContent();
14}
15ksort($arr);
16foreach ($arr as $name => $content) {
17	echo $name, " ", $content;
18}
19echo "ok\n";
20__HALT_COMPILER(); ?>
210���������������������hi���`q�I���zzo�������hi
22�c&��; ��yA,!g�����GBMB