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

Function hack_dtor

src/plugin/plugin_pdo.rs:171–179  ·  view source on GitHub ↗
(this: &mut ZObj, new_dtor: sys::zend_object_dtor_obj_t)

Source from the content-addressed store, hash-verified

169}
170
171fn 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
181unsafe extern "C" fn pdo_dtor(object: *mut sys::zend_object) {
182 unsafe {

Callers 2

hook_pdo_constructMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected