PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/good/ext/standard/tests/file/get_current_user.php

http://github.com/facebook/hiphop-php
PHP | 7 lines | 6 code | 1 blank | 0 comment | 0 complexity | 8a7228e9102d61fd21d903c099681d2b 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>> function main(): void {
  3. try { var_dump(get_current_user("blah")); } catch (Exception $e) { echo "\n".'Warning: '.$e->getMessage().' in '.__FILE__.' on line '.__LINE__."\n"; }
  4. var_dump(get_current_user());
  5. echo "Done\n";
  6. }