1<?php
2// test advanced example
3$phar = new Phar(dirname(__FILE__) . '/include_path.phar');
4$phar2 = new Phar(dirname(__FILE__) . '/include_path2.phar');
5$phar2['file1.php'] = 'file1.php
6';
7$phar2['test/file1.php'] = 'test/file1.php
8';
9$phar['hello/test.php'] = '<?php
10include "file1.php";';
11
12$phar->setStub("<?php
13set_include_path('.' . PATH_SEPARATOR . 'phar://' . dirname(__FILE__) . '/files/include_path2.phar' );
14include 'phar://' . __FILE__ . '/hello/test.php';
15set_include_path('.' . PATH_SEPARATOR . 'phar://' . dirname(__FILE__) . '/files/include_path2.phar/test');
16include 'phar://' . __FILE__ . '/hello/test.php';
17echo \"ok\\n\";
18__HALT_COMPILER();
19?>");
20