Re: Re: Compatibility problems with PHP 5

From: Date: Thu, 27 Nov 2003 14:32:25 +0000
Subject: Re: Re: Compatibility problems with PHP 5
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-5773@lists.php.net to get a copy of this message
MB>> It respects the refcoutning while destructing the zvals. I don't exacetly understand _how_ it respects them so that this solves the circular dependency problem. In fact, in the patch in the URL you have sent I don't even see one call to destructor. Also, does you patch take into account the fact that a number of zvals can refer to the same object? MB>> Controlling life time of objects and hence you could also control MB>> lifetime of resources if you use php5 new database systems which use MB>> objects natively or if you use wrapper objects. So with destructors MB>> you can free them as soon as possible (automagically) without any MB>> further time consumpting tests. So you will also get lower memory I don't see how you can do that. Only place when you don't have to call dtor manually and can be sure the object is destroyed is the end of the request. But by the end of the request all resources are freed anyway, so you don't need dtors to free them. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109

« previous php.internals (#5773) next »