From 61cbece55a0f078215acb7343181aa9a4d7f53d9 Mon Sep 17 00:00:00 2001 From: omniError Date: Fri, 14 Feb 2025 17:41:57 -0600 Subject: [PATCH] Update protobuf.c fixes an incompatible pointer type error on build --- protobuf-ext/php8/protobuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protobuf-ext/php8/protobuf.c b/protobuf-ext/php8/protobuf.c index e272f3e..81f4464 100644 --- a/protobuf-ext/php8/protobuf.c +++ b/protobuf-ext/php8/protobuf.c @@ -94,7 +94,7 @@ PHP_METHOD(ProtobufMessage, __construct) { zval values_array; array_init(&values_array); - zend_update_property(pb_entry, getThis(), PB_VALUES_PROPERTY, sizeof(PB_VALUES_PROPERTY) - 1, &values_array); + zend_update_property(pb_entry, Z_OBJ_P(ZEND_THIS), PB_VALUES_PROPERTY, sizeof(PB_VALUES_PROPERTY) - 1, &values_array); } PHP_METHOD(ProtobufMessage, append)