Req #79246 [NEW]: str_repeat breaks due to limit on argument

From: Date: Sat, 08 Feb 2020 07:50:18 +0000
Subject: Req #79246 [NEW]: str_repeat breaks due to limit on argument
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225441@lists.php.net to get a copy of this message
From: tiruchi_eral at outlook dot com Operating system: PHP version: 7.4.2 Package: *General Issues Bug Type: Feature/Change Request Bug description:str_repeat breaks due to limit on argument Description: ------------ --- From manual page: https://php.net/function.str-repeat --- Test script: --------------- <?php $n = 1_000_000_000_000; $s = "abab"; print_r(repeatString($s, $n) ); Expected result: ---------------- see the string repeated $n times. Actual result: -------------- PHP Warning: str_repeat() expects parameter 2 to be int, float given ... Warning: str_repeat() expects parameter 2 to be int, float given ... -- Edit bug report at https://bugs.php.net/bug.php?id=79246&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79246&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79246&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79246&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79246&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79246&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79246&r=support Expected behavior: https://bugs.php.net/fix.php?id=79246&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79246&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79246&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79246&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79246&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79246&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79246&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79246&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79246&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79246&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79246&r=mysqlcfg

« previous php.bugs (#225441) next »