php-src/ext/phar/tests/nophar.phar.inc
Greg Beaver 117f5e2639 add web-based support for default stub, now phars written with webPhar() will work
out of the box regardless of server configuration with phar file format
split up stub.h strings into 2046 byte chunks because MS VC 6 is friggin stupid
2008-01-20 00:49:45 +00:00

10 lines
416 B
PHP

<?php
$fname = dirname(__FILE__) . '/nophar.phar';
@unlink($fname);
$p = new Phar($fname);
$p['index.php'] = '<?php include "b/c.php";' . "\n";
$p['web.php'] = '<?php echo "web\n";';
$p['b/c.php'] = '<?php echo "in b\n";$a = fopen("index.php", "r", true);echo stream_get_contents($a);fclose($a);include dirname(__FILE__) . "/../d";';
$p['d'] = "in d\n";
$p->setStub($p->createDefaultStub('index.php', 'web.php'));
?>