php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26719 string error
Submitted: 2003-12-26 00:41 UTC Modified: 2003-12-26 04:50 UTC
From: ho at optimasoft dot com dot tw Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.3 OS: Suse 8.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ho at optimasoft dot com dot tw
New email:
PHP Version: OS:

 

 [2003-12-26 00:41 UTC] ho at optimasoft dot com dot tw
Description:
------------
Hi, Sirs,

I wrote a simple string manupluation script like this:

<?php
  error_reporting(E_ALL);
 
  $s = "A";
  for ($i = 0; $i < 27; $i++) {
    $s .= $s;
    echo "String with ".strlen($s)." bytes";
    echo "<br>";
  }
?>

and the result of the string size is growing to 128M, it's incredible, and I tried Mandrake 9.0 with PHP 4.2.3 , the result is ok.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-26 04:50 UTC] abies@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

2**27 == 128M, so no bug
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Dec 05 02:00:01 2025 UTC