1<?php
2
3ini_set('date.timezone', 'GMT');
4
5$fname = dirname(__FILE__) . '/phar_oo_test.phar.php';
6$pname = 'phar://' . $fname;
7$file = '<?php include "' . $pname . '/a.php"; __HALT_COMPILER(); ?>';
8
9$files = array();
10
11if (!isset($pharconfig)) $pharconfig = 0;
12
13switch($pharconfig)
14{
15    default:
16    case 0:
17        $files['a.php']   = '<?php echo "This is a.php\n"; ?>';
18        $files['b.php']   = '<?php echo "This is b.php\n"; ?>';
19        $files['b/c.php'] = '<?php echo "This is b/c.php\n"; ?>';
20        $files['b/d.php'] = '<?php echo "This is b/d.php\n"; ?>';
21        $files['e.php']   = '<?php echo "This is e.php\n"; ?>';
22        break;
23    case 1:
24        $files['a.csv'] =<<<EOF
251,2,3
262,a,b
273,"c","'e'"
28EOF;
29        break;
30    case 2:
31        $files['a.csv'] =<<<EOF
321,2,3
332,a,b
343,"c","'e'"
354
365,5
37
387,777
39EOF;
40        break;
41    case 3:
42        $files['a.php'] = '<?php echo new new class;';
43        break;
44}
45
46$ftime = mktime(12, 0, 0, 3, 1, 2006);
47include 'phar_test.inc';
48
49?>
50