(this: &mut ZObj, new_dtor: sys::zend_object_dtor_obj_t)
| 169 | } |
| 170 | |
| 171 | fn hack_dtor(this: &mut ZObj, new_dtor: sys::zend_object_dtor_obj_t) { |
| 172 | let handle = this.handle(); |
| 173 | |
| 174 | unsafe { |
| 175 | let ori_dtor = (*(*this.as_mut_ptr()).handlers).dtor_obj; |
| 176 | DTOR_MAP.insert(handle, ori_dtor); |
| 177 | (*((*this.as_mut_ptr()).handlers as *mut sys::zend_object_handlers)).dtor_obj = new_dtor; |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | unsafe extern "C" fn pdo_dtor(object: *mut sys::zend_object) { |
| 182 | unsafe { |
no outgoing calls
no test coverage detected