diff options
Diffstat (limited to 'ext/phar/tests/nophar.phar.inc')
-rw-r--r-- | ext/phar/tests/nophar.phar.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/phar/tests/nophar.phar.inc b/ext/phar/tests/nophar.phar.inc new file mode 100644 index 0000000000..78867f1a8c --- /dev/null +++ b/ext/phar/tests/nophar.phar.inc @@ -0,0 +1,8 @@ +<?php +$fname = dirname(__FILE__) . '/nophar.phar'; +@unlink($fname); +$p = new Phar($fname); +$p['index.php'] = '<?php include "b/c.php";' . "\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"; +?>
\ No newline at end of file |