php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #7527 str_repeat only working for lengths greater than 0
Submitted: 2000-10-30 01:26 UTC Modified: 2000-11-11 05:41 UTC
From: wrath at calc dot org Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.2 OS: Any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wrath at calc dot org
New email:
PHP Version: OS:

 

 [2000-10-30 01:26 UTC] wrath at calc dot org
I would find it extremely helpful to have the ability to use str_repeat() with a length 0... I find myself using a ($foo ? str_repeat($bar,$foo) : ""), or defining a function of similar meaning. I apologize ahead of time if this is an inappropriate forum for this to be posted to.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-11 05:41 UTC] hholzgra@php.net
already fixed in cvs
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 22:00:02 2026 UTC