/hphp/test/slow/ext_function/register_postsend_function-exit.php

http://github.com/facebook/hiphop-php · PHP · 23 lines · 19 code · 4 blank · 0 comment · 0 complexity · c051f45d32bf445c287f56761c7a4f26 MD5 · raw file

  1. <?hh
  2. <<__EntryPoint>>
  3. function main_register_postsend_function_exit() {
  4. register_postsend_function(function () {
  5. var_dump('first');
  6. });
  7. register_postsend_function(function () {
  8. var_dump('second, start');
  9. register_postsend_function(function () {
  10. var_dump('third, start');
  11. exit;
  12. var_dump('third, after exit - FAIL');
  13. });
  14. var_dump('second, end');
  15. });
  16. register_postsend_function(function () {
  17. var_dump('fourth');
  18. });
  19. }