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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
28 - 8 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 21:01:27 2024 UTC