Back to index

php5  5.3.10
phar_oo_test.inc
Go to the documentation of this file.
00001 <?php
00002 
00003 ini_set('date.timezone', 'GMT');
00004 
00005 $fname = dirname(__FILE__) . '/phar_oo_test.phar.php';
00006 $pname = 'phar://' . $fname;
00007 $file = '<?php include "' . $pname . '/a.php"; __HALT_COMPILER(); ?>';
00008 
00009 $files = array();
00010 
00011 if (!isset($pharconfig)) $pharconfig = 0;
00012 
00013 switch($pharconfig)
00014 {
00015        default:
00016        case 0:
00017               $files['a.php']   = '<?php echo "This is a.php\n"; ?>';
00018               $files['b.php']   = '<?php echo "This is b.php\n"; ?>';
00019               $files['b/c.php'] = '<?php echo "This is b/c.php\n"; ?>';
00020               $files['b/d.php'] = '<?php echo "This is b/d.php\n"; ?>';
00021               $files['e.php']   = '<?php echo "This is e.php\n"; ?>';
00022               break;
00023        case 1:
00024               $files['a.csv'] =<<<EOF
00025 1,2,3
00026 2,a,b
00027 3,"c","'e'"
00028 EOF;
00029               break;
00030        case 2:
00031               $files['a.csv'] =<<<EOF
00032 1,2,3
00033 2,a,b
00034 3,"c","'e'"
00035 4
00036 5,5
00037 
00038 7,777
00039 EOF;
00040               break;
00041        case 3:
00042               $files['a.php'] = '<?php echo new new class;';
00043               break;
00044 }
00045 
00046 $ftime = mktime(12, 0, 0, 3, 1, 2006);
00047 include 'phar_test.inc';
00048 
00049 ?>