|
|
@ -379,6 +379,7 @@ PHP_METHOD(Message, whichOneof) { |
|
|
|
PHP_PROTO_FAKE_SCOPE_BEGIN(LOWER_CLASS##_type); \
|
|
|
|
PHP_PROTO_FAKE_SCOPE_BEGIN(LOWER_CLASS##_type); \
|
|
|
|
zval* value = message_get_property_internal(getThis(), &member TSRMLS_CC); \
|
|
|
|
zval* value = message_get_property_internal(getThis(), &member TSRMLS_CC); \
|
|
|
|
PHP_PROTO_FAKE_SCOPE_END; \
|
|
|
|
PHP_PROTO_FAKE_SCOPE_END; \
|
|
|
|
|
|
|
|
zval_dtor(&member); \
|
|
|
|
PHP_PROTO_RETVAL_ZVAL(value); \
|
|
|
|
PHP_PROTO_RETVAL_ZVAL(value); \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
PHP_METHOD(UPPER_CLASS, set##UPPER_FIELD) { \
|
|
|
|
PHP_METHOD(UPPER_CLASS, set##UPPER_FIELD) { \
|
|
|
@ -390,6 +391,7 @@ PHP_METHOD(Message, whichOneof) { |
|
|
|
zval member; \
|
|
|
|
zval member; \
|
|
|
|
PHP_PROTO_ZVAL_STRING(&member, LOWER_FIELD, 1); \
|
|
|
|
PHP_PROTO_ZVAL_STRING(&member, LOWER_FIELD, 1); \
|
|
|
|
message_set_property_internal(getThis(), &member, value TSRMLS_CC); \
|
|
|
|
message_set_property_internal(getThis(), &member, value TSRMLS_CC); \
|
|
|
|
|
|
|
|
zval_dtor(&member); \
|
|
|
|
PHP_PROTO_RETVAL_ZVAL(getThis()); \
|
|
|
|
PHP_PROTO_RETVAL_ZVAL(getThis()); \
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -402,6 +404,7 @@ PHP_METHOD(Message, whichOneof) { |
|
|
|
message_get_oneof_property_internal(getThis(), &member, \
|
|
|
|
message_get_oneof_property_internal(getThis(), &member, \
|
|
|
|
return_value TSRMLS_CC); \
|
|
|
|
return_value TSRMLS_CC); \
|
|
|
|
PHP_PROTO_FAKE_SCOPE_END; \
|
|
|
|
PHP_PROTO_FAKE_SCOPE_END; \
|
|
|
|
|
|
|
|
zval_dtor(&member); \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
PHP_METHOD(UPPER_CLASS, set##UPPER_FIELD) { \
|
|
|
|
PHP_METHOD(UPPER_CLASS, set##UPPER_FIELD) { \
|
|
|
|
zval* value = NULL; \
|
|
|
|
zval* value = NULL; \
|
|
|
@ -412,6 +415,7 @@ PHP_METHOD(Message, whichOneof) { |
|
|
|
zval member; \
|
|
|
|
zval member; \
|
|
|
|
PHP_PROTO_ZVAL_STRING(&member, LOWER_FIELD, 1); \
|
|
|
|
PHP_PROTO_ZVAL_STRING(&member, LOWER_FIELD, 1); \
|
|
|
|
message_set_property_internal(getThis(), &member, value TSRMLS_CC); \
|
|
|
|
message_set_property_internal(getThis(), &member, value TSRMLS_CC); \
|
|
|
|
|
|
|
|
zval_dtor(&member); \
|
|
|
|
PHP_PROTO_RETVAL_ZVAL(getThis()); \
|
|
|
|
PHP_PROTO_RETVAL_ZVAL(getThis()); \
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|