|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35665 str_repeat() improper error message spelling
Submitted: 2005-12-14 01:45 UTC Modified: 2005-12-14 01:54 UTC
From: pcc at wamail dot net Assigned:
Status: Closed Package: Strings related
PHP Version: * OS: windows 2000 sp3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
43 + 39 = ?
Subscribe to this entry?

 [2005-12-14 01:45 UTC] pcc at wamail dot net
"longer then" should change to longer than"

Warning: str_repeat() [function.str-repeat]: You may not create strings longer then 2147483647 bytes in C:\prj\Internet\mastwebs\NorthWing\test-simple.php on line 99

Reproduce code:
$s = str_repeat("abcdef123456", 0xfffffff) ;

Expected result:
(see Description: above)

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-14 01:54 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Oct 22 04:03:33 2021 UTC