Annotation of embedaddon/php/ext/phar/tests/031.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar: include and parser error
3: --SKIPIF--
4: <?php if (!extension_loaded("phar")) die("skip"); ?>
5: --INI--
6: phar.require_hash=0
7: --FILE--
8: <?php
9:
10: $pharconfig = 3;
11:
12: require_once 'files/phar_oo_test.inc';
13:
14: Phar::loadPhar($fname);
15:
16: $pname = 'phar://' . $fname . '/a.php';
17:
18: var_dump(file_get_contents($pname));
19: require $pname;
20:
21: ?>
22: ===DONE===
23: --CLEAN--
24: <?php
25: unlink(dirname(__FILE__) . '/files/phar_oo_test.phar.php');
26: __halt_compiler();
27: ?>
28: --EXPECTF--
29: string(25) "<?php echo new new class;"
30:
31: Parse error: %s in phar://%sphar_oo_test.phar.php/a.php on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>