MCPcopy Create free account
hub / github.com/apache/skywalking-php / hack_free

Function hack_free

src/plugin/plugin_redis.rs:333–341  ·  view source on GitHub ↗
(this: &mut ZObj, new_free: sys::zend_object_free_obj_t)

Source from the content-addressed store, hash-verified

331}
332
333fn 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
343unsafe extern "C" fn redis_dtor(object: *mut sys::zend_object) {
344 unsafe {

Callers 1

hook_redis_constructMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected