PageRenderTime 25ms CodeModel.GetById 2ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/slow/ext_string/str_repeat.php

http://github.com/facebook/hiphop-php
PHP | 15 lines | 12 code | 3 blank | 0 comment | 0 complexity | 684263f47818698e8a0b5b7d541ff073 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>>
  3. function main_str_repeat() {
  4. try {
  5. $var = str_repeat('A', -1);
  6. var_dump($var);
  7. } catch (Exception $e) {
  8. var_dump($e->getMessage());
  9. }
  10. $var = str_repeat('A', 9223372036854775807);
  11. var_dump($var);
  12. }