xml ext and objects

php.internals

Rob Richards

22 years ago
Attached is a patch for the xml extension which fixes the segfault with objects such as in bug 27821 as well as a few other scripts i've seen floating around. Is there a reason why zval_add_ref in xml_set_object was commented out? Yes I already asked thies and was directed here. It doesnt make sense that this function will dtor the object but not increment the ref on the object, which in bug 27821, the engine ended up destyoing the object while running the methods of the object. The changes in compat.c are unrelated mem leak fixes Rob