We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c43aaf commit 1f9da1cCopy full SHA for 1f9da1c
1 file changed
types.go
@@ -410,6 +410,11 @@ func PHPValue(value any) unsafe.Pointer {
410
return unsafe.Pointer(zval)
411
}
412
413
+// EXPERIMENTAL: PHPReturnValue is equivalent to PHPValue, but will populate the provided *C.zval directly.
414
+func PHPReturnValue(zval unsafe.Pointer, value any) unsafe.Pointer {
415
+ phpValue((*C.zval)(zval), value)
416
+}
417
+
418
func phpValue(zval *C.zval, value any) {
419
if toZvalObj, ok := value.(toZval); ok {
420
toZvalObj.toZval(zval)
0 commit comments