php.net |  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
Votes:2
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-06-12 08:39 UTC] ardo at np dot ee
Description:
------------
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) {
	$formatter->format($date);
}


Expected result:
----------------
Should be just infinite loop.

Actual result:
--------------
java.lang.OutOfMemoryError

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Nov 19 21:01:35 2019 UTC