php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3347 string.c leaks memory
Submitted: 2000-01-29 11:00 UTC Modified: 2000-01-31 17:27 UTC
From: danny dot heijl at cevi dot be Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (29/01/2000) OS: Linux Red Hat 6.0
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: danny dot heijl at cevi dot be
New email:
PHP Version: OS:

 

 [2000-01-29 11:00 UTC] danny dot heijl at cevi dot be
Simple scripts leak memory :

<?php

$a = "abc def ghi";
$b = ucwords($a);

echo "ucwords:\n";
echo $a . "\n";
echo $b . "\n";


?>
X-Powered-By: PHP/4.0b4-dev
Content-Type: text/html

ucwords:
abc def ghi
Abc Def Ghi


/home/web/php/php4/ext/standard/string.c(1109) :  Freeing 0x0824BB84 (12 bytes), script=leak.php
../../php4/Zend/zend_variables.c(126) : Actual location (location was relayed)
../../php4/Zend/zend_execute.c(1537) :  Freeing 0x0824598C (12 bytes), script=leak.php
[root@dannyslx tests]# 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-01-31 14:26 UTC] zeev at cvs dot php dot net
We're unable to reproduce this bug.  There's a slight chance it's related to your php.ini configuration - please supply it.

 [2000-01-31 17:27 UTC] danny dot heijl at cevi dot be
fixed in current cvs, thanks.

Danny
---
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC