PageRenderTime 48ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  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. }