ID:               47285
 Comment by:       sadrak at sogetthis dot com
 Reported By:      danger at FreeBSD dot org
 Status:           Assigned
 Bug Type:         Date/time related
 Operating System: *
 PHP Version:      5.2 (SVN-2009-0-02)
 Assigned To:      derick
 New Comment:

Problem verified on:
Linux version 2.6.30-1-amd64 (Debian 2.6.30-6) (wa...@debian.org) (gcc
version 4.3.4 (Debian 4.3.4-1) ) #1 SMP Sat Aug 15 21:08:31 UTC 2009

Using:
PHP 5.2.10-2 with Suhosin-Patch 0.9.7 (cli) (built: Jul 10 2009
00:34:06)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with Suhosin v0.9.28, Copyright (c) 2007, by SektionEins GmbH


Previous Comments:
------------------------------------------------------------------------

[2009-09-02 11:52:12] j...@php.net

Reproduced on 32/64 bit servers using latest PHP_5_2 checkout. Does NOT
happen with PHP_5_3.

------------------------------------------------------------------------

[2009-08-26 16:42:29] heron at xnapid dot com

I can confirm the same leak, running in Apache on Windows.  Apache
kills the script after a time limit, but the leaked memory remains
leaked; refreshing the same URL causes the total leaked memory to
increase from there.  It looks like it leaks 800KB per second or so, and
the script is killed after leaking about 30MB.

I'm running PHP 5.2.9-2, which came straight from the default Windows
installer.

------------------------------------------------------------------------

[2009-07-23 20:26:57] scott at crisscott dot com

Reproduced on RHEL 4 (PHP built from source not RPM)
PHP 5.2.9 (cli) (built: May  1 2009 13:47:24) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with Zend Debugger v5.2.14, Copyright (c) 1999-2008, by Zend
Technologies

Applying the patch from oliver at realtsp dot com slowed down the leak,
but did not stop it entirely.

------------------------------------------------------------------------

[2009-07-07 10:47:47] oliver at realtsp dot com

I can confirm that we can reproduce this bug on FreeBSD 7.2 with
php5.2.10 and that the patch provided by bloudon at townnews dot com
does stop the leak.

I had to manually apply the patch because copying out of the html
rarely works, so I have prepared a "clean" version which applies without
errors to the current FreeBSD 7.2 port of php5. Here it is:

http://www.realtsp.com/public/patch-ext_date_php_date.c

Oliver

------------------------------------------------------------------------

[2009-04-15 07:55:33] kimc at operamail dot com

You dont see the memory leak with PHP's memory_get_usage(), and the
process wont get killed by PHP's general memory_limit.

PHP doesnt see the memory use, but the kernel does and after some time
the kernel will kill it due to ulimit or out of memory.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/47285

-- 
Edit this bug report at http://bugs.php.net/?id=47285&edit=1

Reply via email to