Annotation of embedaddon/php/ext/phar/tests/files/include_path.phar.inc, revision 1.1.1.1

1.1       misho       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
                     10: include "file1.php";';
                     11: 
                     12: $phar->setStub("<?php
                     13: set_include_path('.' . PATH_SEPARATOR . 'phar://' . dirname(__FILE__) . '/files/include_path2.phar' );
                     14: include 'phar://' . __FILE__ . '/hello/test.php';
                     15: set_include_path('.' . PATH_SEPARATOR . 'phar://' . dirname(__FILE__) . '/files/include_path2.phar/test');
                     16: include 'phar://' . __FILE__ . '/hello/test.php';
                     17: echo \"ok\\n\";
                     18: __HALT_COMPILER();
                     19: ?>");

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>