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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 10:01:32 2024 UTC