Allows passing Object without ref.

This commit is contained in:
Alliballibaba
2025-10-19 22:50:33 +02:00
parent 68eff13c5f
commit 42fda73838

View File

@@ -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))
}