pub fn set_resource(&mut self, val: *mut zend_resource) {
        self.change_type(ZvalTypeFlags::ResourceEx);
        self.value.res = val;
    }
Sets the value of the zval as a resource.

# Parameters

* `val` - The value to set the zval as.
src/types/zval.rs