[Tickets #6837] Re: Singletons and references

bugs at horde.org bugs at horde.org
Thu Jun 5 08:07:34 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/6837
-----------------------------------------------------------------------
 Ticket             | 6837
 Updated By         | Thomas Jarosch <thomas.jarosch at intra2net.com>
 Summary            | Singletons and references
 Queue              | Horde Framework Packages
 Version            | HEAD
 Type               | Bug
 State              | Assigned
 Priority           | 1. Low
 Milestone          |
 Patch              |
 Owners             | Thomas Jarosch
-----------------------------------------------------------------------


Thomas Jarosch <thomas.jarosch at intra2net.com> (2008-06-05 04:07) wrote:

> Actually, I don't think this has anything to do with what you see,
> because the PHP manual  explicitly refers to Zend Engine 1.

Everything seems to run smooth until one of those classes created by our
"wrong" singleton contains an object like PEAR_Error. My Horde_History
object does this as I don't use a SQL backend. PEAR_Error contains cyclic
references internally.

PHP 5.2.x currently doesn't handle cleanup of cyclic references. PHP 5.3.x
should be fixed, but it doesn't work properly. I filed an upstream bug:
http://bugs.php.net/?id=45178

My feeling tells me that something with all those (cyclic) references goes
wrong during cleanup/reference counting/whatever. Let's see what happens
after I have fixed the singletons.





More information about the bugs mailing list