From: Zeev Suraski > PZVAL_UNLOCK() should *never* be used by anything outside the engine. The > leak is somewhere else.
If that should never be called outside the engine, then the issue seems to be from any extension that needs to override zend_std_read_property. DOM has the same issue, as it currently needs to call pzval_unlock when returning the property value as it uses the libxml structure to store and grab the property values, thus needing to create the zval each time. With no way to clean it up, it just ends up leaking. The foreach issue in simplexml is similar in respect the problem from dynamic properties. It keeps creating a hash table when the sxe_properties_get is called. It needs someway to know when to create the hashtable, that way functions like zend_fe_reset_handler could use something other than HASH_OF, if defined. Pretty much what Marcus has in SPL iterators. Rob -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php