pub fn set_ptr<T>(&mut self, ptr: *mut T) {
        self.u1.type_info = ZvalTypeFlags::Ptr.bits();
        self.value.ptr = ptr.cast::<c_void>();
    }
Sets the value of the zval as a pointer.

# Parameters

* `ptr` - The pointer to set the zval as.
src/types/zval.rs