/hphp/test/slow/ext_function/register_postsend_function-exit.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
- <?hh
- <<__EntryPoint>>
- function main_register_postsend_function_exit() {
- register_postsend_function(function () {
- var_dump('first');
- });
- register_postsend_function(function () {
- var_dump('second, start');
- register_postsend_function(function () {
- var_dump('third, start');
- exit;
- var_dump('third, after exit - FAIL');
- });
- var_dump('second, end');
- });
- register_postsend_function(function () {
- var_dump('fourth');
- });
- }