File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
halt_compiler2.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 2 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
__HALT_COMPILER(); 2 files
--FILE--
<?php
$text = "<?php echo 'test'; var_dump(__COMPILER_HALT_OFFSET__); __HALT_COMPILER(); ?>
hi there";
file_put_contents(dirname(__FILE__) . '/test1.php', $text);
$text = "<?php echo 'test2'; var_dump(__COMPILER_HALT_OFFSET__); __HALT_COMPILER(); ?>
hi there 2";
file_put_contents(dirname(__FILE__) . '/test2.php', $text);
include dirname(__FILE__) . '/test1.php';
include dirname(__FILE__) . '/test2.php';
?>
==DONE==
--CLEAN--
<?php
unlink(dirname(__FILE__) . '/test1.php');
unlink(dirname(__FILE__) . '/test2.php');
?>
--EXPECT--
testint(73)
test2int(74)
==DONE==
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>