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
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: ardo at np dot ee
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC