/hphp/test/zend/good/ext/standard/tests/file/get_current_user.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
- <?hh
- <<__EntryPoint>> function main(): void {
- try { var_dump(get_current_user("blah")); } catch (Exception $e) { echo "\n".'Warning: '.$e->getMessage().' in '.__FILE__.' on line '.__LINE__."\n"; }
- var_dump(get_current_user());
- echo "Done\n";
- }