Bug #46103 [Opn->Ver]: ReflectionObject memory leak

From: Date: Sat, 17 Dec 2016 14:37:15 +0000
Subject: Bug #46103 [Opn->Ver]: ReflectionObject memory leak
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206091@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=46103&edit=1

 ID:                 46103
 Updated by:         nikic@php.net
 Reported by:        jim dot keller at contextsolutions dot net
 Summary:            ReflectionObject memory leak
-Status:             Open
+Status:             Verified
 Type:               Bug
 Package:            Performance problem
 Operating System:   Windows XP
 PHP Version:        5.2.6
 Block user comment: N
 Private report:     N

 New Comment:

Confirming that this still leaks on PHP 7.


Previous Comments:
------------------------------------------------------------------------
[2011-09-27 08:27:46] laruence@php.net

it seems because the object pass to ReflectionObject::__construct is stored in a 
custom struct, which can not be reached by gc_collect_cycles.

------------------------------------------------------------------------
[2011-09-27 05:43:17] laruence@php.net

hmm, seems not a ZE issue

------------------------------------------------------------------------
[2011-09-27 05:11:45] laruence@php.net

I can reproduce.. dmitry plz look at this .

------------------------------------------------------------------------
[2011-09-27 04:03:04] eric dot muyser at gmail dot com

Not bogus. Still an issue in 5.3.8. https://gist.github.com/1244305

------------------------------------------------------------------------
[2008-09-20 12:38:35] felipe@php.net

Try using memory_get_usage(true).
http://docs.php.net/memory-get-usage

I don't found any memory leak.

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


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

    https://bugs.php.net/bug.php?id=46103


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


Thread (9 messages)

« previous php.bugs (#206091) next »