Annotation of embedaddon/php/Zend/tests/halt_compiler2.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: __HALT_COMPILER(); 2 files
3: --FILE--
4: <?php
5: $text = "<?php echo 'test'; var_dump(__COMPILER_HALT_OFFSET__); __HALT_COMPILER(); ?>
6: hi there";
7: file_put_contents(dirname(__FILE__) . '/test1.php', $text);
8: $text = "<?php echo 'test2'; var_dump(__COMPILER_HALT_OFFSET__); __HALT_COMPILER(); ?>
9: hi there 2";
10: file_put_contents(dirname(__FILE__) . '/test2.php', $text);
11: include dirname(__FILE__) . '/test1.php';
12: include dirname(__FILE__) . '/test2.php';
13: ?>
14: ==DONE==
15: --CLEAN--
16: <?php
17: unlink(dirname(__FILE__) . '/test1.php');
18: unlink(dirname(__FILE__) . '/test2.php');
19: ?>
20: --EXPECT--
21: testint(73)
22: test2int(74)
23: ==DONE==
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>