mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
Allows passing Object without ref.
This commit is contained in:
2
types.go
2
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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user