From:             ardo at np dot ee
Operating system: Windows 2000
PHP version:      4.3.2
PHP Bug Type:     Java related
Bug description:  increasing memory usage

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

-- 
Edit bug report at http://bugs.php.net/?id=24148&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24148&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24148&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24148&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24148&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24148&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24148&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24148&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24148&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24148&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24148&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24148&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24148&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24148&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24148&r=gnused

Reply via email to