/hphp/test/slow/ext_string/str_repeat.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
- <?hh
- <<__EntryPoint>>
- function main_str_repeat() {
- try {
- $var = str_repeat('A', -1);
- var_dump($var);
- } catch (Exception $e) {
- var_dump($e->getMessage());
- }
- $var = str_repeat('A', 9223372036854775807);
- var_dump($var);
- }