|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24148 increasing memory usage
Submitted: 2003-06-12 08:39 UTC Modified: 2003-10-30 21:12 UTC
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: ardo at np dot ee Assigned:
Status: Wont fix Package: Java related
PHP Version: 4.3.3RC5-dev (cgi-fcgi) (built: Aug 19 2003 06:14:12) OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ardo at np dot ee
New email:
PHP Version: OS:


 [2003-06-12 08:39 UTC] ardo at np dot ee
When using Java extension PHP seems to increase memory usage constantly. When I used a very simple example, Windows Task Manager showd that memory usage of php.exe constantly increased. When using infinite loop I finally got java.lang.OutOfMemoryError.

Reproduce code:
$formatter = new Java('java.text.SimpleDateFormat', "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");
$date = new Java('java.util.Date');
while(1) {

Expected result:
Should be just infinite loop.

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-30 21:12 UTC]
Won't be fixed in PHP 4, PHP 5 propably will have better working Java stuff in the future.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jun 13 15:01:24 2021 UTC