Annotation of embedaddon/php/ext/phar/tests/files/phar_oo_test.inc, revision 1.1.1.1

1.1       misho       1: <?php
                      2: 
                      3: ini_set('date.timezone', 'GMT');
                      4: 
                      5: $fname = dirname(__FILE__) . '/phar_oo_test.phar.php';
                      6: $pname = 'phar://' . $fname;
                      7: $file = (binary)'<?php include "' . $pname . '/a.php"; __HALT_COMPILER(); ?>';
                      8: 
                      9: $files = array();
                     10: 
                     11: if (!isset($pharconfig)) $pharconfig = 0;
                     12: 
                     13: switch($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
                     25: 1,2,3
                     26: 2,a,b
                     27: 3,"c","'e'"
                     28: EOF;
                     29:                break;
                     30:        case 2:
                     31:                $files['a.csv'] =<<<EOF
                     32: 1,2,3
                     33: 2,a,b
                     34: 3,"c","'e'"
                     35: 4
                     36: 5,5
                     37: 
                     38: 7,777
                     39: EOF;
                     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);
                     47: include 'phar_test.inc';
                     48: 
                     49: ?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>