|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2008-09-20 12:38 UTC] felipe@php.net
  [2011-09-27 04:03 UTC] eric dot muyser at gmail dot com
  [2011-09-27 05:11 UTC] laruence@php.net
 
-Status:      Bogus
+Status:      Open
-Assigned To:
+Assigned To: dmitry
  [2011-09-27 05:11 UTC] laruence@php.net
  [2011-09-27 05:43 UTC] laruence@php.net
 
-Assigned To: dmitry
+Assigned To:
  [2011-09-27 05:43 UTC] laruence@php.net
  [2011-09-27 08:27 UTC] laruence@php.net
  [2016-12-17 14:37 UTC] nikic@php.net
 
-Status: Open
+Status: Verified
  [2016-12-17 14:37 UTC] nikic@php.net
  [2016-12-18 16:11 UTC] nikic@php.net
  [2016-12-18 16:11 UTC] nikic@php.net
 
-Status: Verified
+Status: Closed
  [2017-10-10 16:11 UTC] jim dot keller at contextsolutions dot net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
Description: ------------ when a reflector is stored in a class property, the reflector appears to stay in memory after the object is destroyed. This could be related to #33595 Reproduce code: --------------- class testclass { protected $_r; public function __construct() { $this->getr(); } public function getr() { if ( !$this->_r ) $this->_r = new ReflectionObject($this); return $this->_r; } } for ( $j = 0; $j < 100; $j++ ) { $t = new testclass(); echo memory_get_usage() . '<br />'; } Expected result: ---------------- memory usage should stay constant Actual result: -------------- memory usage increases with every iteration