halt_compiler2.phpt 611 B

1234567891011121314151617181920212223
  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==