From 42fda7383895bb484e6ea6e7ee98870da9f31454 Mon Sep 17 00:00:00 2001 From: Alliballibaba Date: Sun, 19 Oct 2025 22:50:33 +0200 Subject: [PATCH] Allows passing Object without ref. --- types.go | 2 ++ 1 file changed, 2 insertions(+) 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)) }