diff --git a/types.go b/types.go index 9eb4e2a8..d343fe0e 100644 --- a/types.go +++ b/types.go @@ -382,6 +382,8 @@ func phpValue(zval *C.zval, value any, ctx *copyContext) { *(**C.zend_array)(unsafe.Pointer(&zval.value)) = phpPackedArray(v, ctx) case *Object: phpObject(zval, v, ctx) + case Object: + phpObject(zval, &v, ctx) default: panic(fmt.Sprintf("unsupported Go type %T", v)) }