php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5641 php module fails to release memory
Submitted: 2000-07-17 11:02 UTC Modified: 2000-07-23 14:22 UTC
From: michel dot jansens at ulb dot ac dot be Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.1pl2 OS: Solaris 2.6
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: michel dot jansens at ulb dot ac dot be
New email:
PHP Version: OS:

 

 [2000-07-17 11:02 UTC] michel dot jansens at ulb dot ac dot be
Before running the script below all httpd processes take 1169KB RAM and 9352 SWAP

After one of the http process takes 6292KB RAM and 50,336KB SWAP

Is this normal behaviour?  is there a way to prevent this?


<?php
$a="0123456789";
for($i=0;$i<21;$i++)$a.=$a;
print strlen($a);
unset($a);
?>

Php module config:
configure --enable-track-vars \
                     --with-informix=/usr/products/informix \
                     --with-imap=/usr/products/imap/imap-4.7/c-client \
                     --enable-force-cgi-redirect \
                     --with-apxs=/usr/products/apache1.3.12/bin/apxs  

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-23 14:22 UTC] stas at cvs dot php dot net
You can use memory_limit to prevent memory over-use.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Oct 12 07:00:02 2026 UTC