(this: &mut ZObj, new_free: sys::zend_object_free_obj_t)
| 331 | } |
| 332 | |
| 333 | fn hack_free(this: &mut ZObj, new_free: sys::zend_object_free_obj_t) { |
| 334 | let handle = this.handle(); |
| 335 | |
| 336 | unsafe { |
| 337 | let ori_free = (*(*this.as_mut_ptr()).handlers).free_obj; |
| 338 | FREE_MAP.insert(handle, ori_free); |
| 339 | (*((*this.as_mut_ptr()).handlers as *mut sys::zend_object_handlers)).free_obj = new_free; |
| 340 | } |
| 341 | } |
| 342 | |
| 343 | unsafe extern "C" fn redis_dtor(object: *mut sys::zend_object) { |
| 344 | unsafe { |
no outgoing calls
no test coverage detected