pub fn set_object(&mut self, val: &mut ZendObject) {
        self.change_type(ZvalTypeFlags::ObjectEx);
        val.inc_count(); // TODO(david): not sure if this is needed :/
        self.value.obj = ptr::from_ref(val).cast_mut();
    }
Sets the value of the zval as a reference to an object.

# Parameters

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