PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/slow/ext_readline/readline_completion_function.php

http://github.com/facebook/hiphop-php
PHP | 19 lines | 15 code | 4 blank | 0 comment | 0 complexity | 85049d0e22acf4477da2af01db3e37de 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. function foo() { }
  3. <<__EntryPoint>>
  4. function main_readline_completion_function() {
  5. $data = varray[
  6. 'foo',
  7. 'strtolower',
  8. 1,
  9. 1.1231,
  10. function ($str, $start, $end) { return varray[]; },
  11. ];
  12. foreach ($data as $callback) {
  13. readline_completion_function($callback);
  14. }
  15. }