Annotation of embedaddon/php/ext/phar/tests/files/blog.phar.inc, revision 1.1
1.1 ! misho 1: <?php
! 2:
! 3: $fname = dirname(__FILE__) . '/blog.phar';
! 4: @unlink($fname);
! 5:
! 6: $phar = new Phar($fname);
! 7: $phar->setStub('<?php
! 8: Phar::interceptFileFuncs();
! 9: if(file_exists(dirname(__FILE__) . "/files/config.xml")) {
! 10: Phar::mount("config.xml", dirname(__FILE__) . "/files/config.xml");
! 11: }
! 12: Phar::webPhar("blog", "index.php");
! 13: __HALT_COMPILER(); ?>');
! 14: $phar['index.php'] = '<?php if (!file_exists("config.xml")) {
! 15: include "install.php";
! 16: exit;
! 17: }
! 18: var_dump(str_replace("\r\n", "\n", file_get_contents("config.xml")));
! 19: ?>';
! 20: $phar['install.php'] = '<?php echo "install\n"; ?>';
! 21:
! 22: ?>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>