PageRenderTime 47ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/bad/tests/output/ob_013.php

http://github.com/facebook/hiphop-php
PHP | 24 lines | 19 code | 5 blank | 0 comment | 0 complexity | 2d4209db28ec86b2f5f45bfebed28e95 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. <?php
  2. function a($s){return $s;}
  3. function b($s){return $s;}
  4. function c($s){return $s;}
  5. function d($s){return $s;}
  6. ob_start();
  7. ob_start('a');
  8. ob_start('b');
  9. ob_start('c');
  10. ob_start('d');
  11. ob_start();
  12. echo "foo\n";
  13. ob_flush();
  14. ob_end_clean();
  15. ob_flush();
  16. print_r(ob_list_handlers());
  17. print_r(ob_get_status());
  18. print_r(ob_get_status(true));
  19. ?>