ID: 17591 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Scripting Engine problem Operating System: Linux (Suse 7.3) PHP Version: 4.2.1 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2002-09-09 11:21:25] [EMAIL PROTECTED] Circular refernces _are_ supported (meaning, they will work, etc.) but indeed cause 'memory leak' messages. This is not real leaks, because they are cleaned at the end of the request. As for the crash - please try to produce some short code that reproduces the problem, or at least refine the circumstances when it happens. Also, you may want to try latest version (4.2.3) or latest CVS snapshot (snaps.php.net). ------------------------------------------------------------------------ [2002-06-05 11:15:11] [EMAIL PROTECTED] Shouldn't that restriction be documented somewhere? Can these circular references cause any other problems or errors than in the garbage collection? Would it be a solution to cut off these references in a destructor method before the script ends? Does the garbage collector call a destructor method for objects? ------------------------------------------------------------------------ [2002-06-04 08:57:16] [EMAIL PROTECTED] The zend engine doesn't support circular refereing and never will (hence the memory leaks you see with the debug build). This won't get fixed. Seems that accessing the global var in your example as you described it is a very negative side effect. I guess unless you can post a reproduceable example there's nothing we can do about it. ------------------------------------------------------------------------ [2002-06-04 07:22:48] [EMAIL PROTECTED] yes, we use both. We have objects with attributes pointing to other objects. These other objects may have an attribute pointing back to the first object. ------------------------------------------------------------------------ [2002-06-04 06:30:41] [EMAIL PROTECTED] Are you using objects and circular references? ------------------------------------------------------------------------ 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/17591 -- Edit this bug report at http://bugs.php.net/?id=17591&edit=1
