From 3fddc0045691d86527ce8e52ed23f2c64ad4cb65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Sat, 13 Dec 2025 19:16:20 +0100 Subject: [PATCH] fix: update mercure_publish() to use the new GoPackedArray() API --- mercure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercure.go b/mercure.go index 737d0e101..9dc27e229 100644 --- a/mercure.go +++ b/mercure.go @@ -46,7 +46,7 @@ func go_mercure_publish(threadIndex C.uintptr_t, topics *C.struct__zval_struct, case C.IS_STRING: u.Topics = []string{GoString(unsafe.Pointer(*(**C.zend_string)(unsafe.Pointer(&topics.value[0]))))} case C.IS_ARRAY: - ts, err := GoPackedArray[string](unsafe.Pointer(topics)) + ts, err := GoPackedArray[string](unsafe.Pointer(*(**C.zend_array)(unsafe.Pointer(&topics.value[0])))) if err != nil { if fc.logger.Enabled(ctx, slog.LevelError) { fc.logger.LogAttrs(ctx, slog.LevelError, "invalid topics type", slog.Any("error", err))