@@ -1770,19 +1770,19 @@ zend_class_entry* api_type;
1770
1770
// Init class entry.
1771
1771
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Api" ,
1772
1772
Api , api )
1773
- zend_declare_property_null (api_type , "name" , strlen ("name" ),
1774
- ZEND_ACC_PRIVATE TSRMLS_CC );
1773
+ zend_declare_property_string (api_type , "name" , strlen ("name" ), "" ,
1774
+ ZEND_ACC_PRIVATE TSRMLS_CC );
1775
1775
zend_declare_property_null (api_type , "methods" , strlen ("methods" ),
1776
1776
ZEND_ACC_PRIVATE TSRMLS_CC );
1777
1777
zend_declare_property_null (api_type , "options" , strlen ("options" ),
1778
1778
ZEND_ACC_PRIVATE TSRMLS_CC );
1779
- zend_declare_property_null (api_type , "version" , strlen ("version" ),
1780
- ZEND_ACC_PRIVATE TSRMLS_CC );
1779
+ zend_declare_property_string (api_type , "version" , strlen ("version" ), "" ,
1780
+ ZEND_ACC_PRIVATE TSRMLS_CC );
1781
1781
zend_declare_property_null (api_type , "source_context" , strlen ("source_context" ),
1782
1782
ZEND_ACC_PRIVATE TSRMLS_CC );
1783
1783
zend_declare_property_null (api_type , "mixins" , strlen ("mixins" ),
1784
1784
ZEND_ACC_PRIVATE TSRMLS_CC );
1785
- zend_declare_property_null (api_type , "syntax" , strlen ("syntax" ),
1785
+ zend_declare_property_long (api_type , "syntax" , strlen ("syntax" ), 0 ,
1786
1786
ZEND_ACC_PRIVATE TSRMLS_CC );
1787
1787
PHP_PROTO_INIT_SUBMSGCLASS_END
1788
1788
@@ -1816,7 +1816,7 @@ zend_class_entry* bool_value_type;
1816
1816
// Init class entry.
1817
1817
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\BoolValue" ,
1818
1818
BoolValue , bool_value )
1819
- zend_declare_property_null (bool_value_type , "value" , strlen ("value" ),
1819
+ zend_declare_property_bool (bool_value_type , "value" , strlen ("value" ), 0 ,
1820
1820
ZEND_ACC_PRIVATE TSRMLS_CC );
1821
1821
PHP_PROTO_INIT_SUBMSGCLASS_END
1822
1822
@@ -1844,8 +1844,8 @@ zend_class_entry* bytes_value_type;
1844
1844
// Init class entry.
1845
1845
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\BytesValue" ,
1846
1846
BytesValue , bytes_value )
1847
- zend_declare_property_null (bytes_value_type , "value" , strlen ("value" ),
1848
- ZEND_ACC_PRIVATE TSRMLS_CC );
1847
+ zend_declare_property_string (bytes_value_type , "value" , strlen ("value" ), "" ,
1848
+ ZEND_ACC_PRIVATE TSRMLS_CC );
1849
1849
PHP_PROTO_INIT_SUBMSGCLASS_END
1850
1850
1851
1851
PHP_METHOD (BytesValue , __construct ) {
@@ -1872,8 +1872,8 @@ zend_class_entry* double_value_type;
1872
1872
// Init class entry.
1873
1873
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\DoubleValue" ,
1874
1874
DoubleValue , double_value )
1875
- zend_declare_property_null (double_value_type , "value" , strlen ("value" ),
1876
- ZEND_ACC_PRIVATE TSRMLS_CC );
1875
+ zend_declare_property_double (double_value_type , "value" , strlen ("value" ), 0 ,
1876
+ ZEND_ACC_PRIVATE TSRMLS_CC );
1877
1877
PHP_PROTO_INIT_SUBMSGCLASS_END
1878
1878
1879
1879
PHP_METHOD (DoubleValue , __construct ) {
@@ -1908,15 +1908,15 @@ zend_class_entry* enum_type;
1908
1908
// Init class entry.
1909
1909
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Enum" ,
1910
1910
Enum , enum )
1911
- zend_declare_property_null (enum_type , "name" , strlen ("name" ),
1912
- ZEND_ACC_PRIVATE TSRMLS_CC );
1911
+ zend_declare_property_string (enum_type , "name" , strlen ("name" ), "" ,
1912
+ ZEND_ACC_PRIVATE TSRMLS_CC );
1913
1913
zend_declare_property_null (enum_type , "enumvalue" , strlen ("enumvalue" ),
1914
1914
ZEND_ACC_PRIVATE TSRMLS_CC );
1915
1915
zend_declare_property_null (enum_type , "options" , strlen ("options" ),
1916
1916
ZEND_ACC_PRIVATE TSRMLS_CC );
1917
1917
zend_declare_property_null (enum_type , "source_context" , strlen ("source_context" ),
1918
1918
ZEND_ACC_PRIVATE TSRMLS_CC );
1919
- zend_declare_property_null (enum_type , "syntax" , strlen ("syntax" ),
1919
+ zend_declare_property_long (enum_type , "syntax" , strlen ("syntax" ), 0 ,
1920
1920
ZEND_ACC_PRIVATE TSRMLS_CC );
1921
1921
PHP_PROTO_INIT_SUBMSGCLASS_END
1922
1922
@@ -1952,9 +1952,9 @@ zend_class_entry* enum_value_type;
1952
1952
// Init class entry.
1953
1953
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\EnumValue" ,
1954
1954
EnumValue , enum_value )
1955
- zend_declare_property_null (enum_value_type , "name" , strlen ("name" ),
1956
- ZEND_ACC_PRIVATE TSRMLS_CC );
1957
- zend_declare_property_null (enum_value_type , "number" , strlen ("number" ),
1955
+ zend_declare_property_string (enum_value_type , "name" , strlen ("name" ), "" ,
1956
+ ZEND_ACC_PRIVATE TSRMLS_CC );
1957
+ zend_declare_property_long (enum_value_type , "number" , strlen ("number" ), 0 ,
1958
1958
ZEND_ACC_PRIVATE TSRMLS_CC );
1959
1959
zend_declare_property_null (enum_value_type , "options" , strlen ("options" ),
1960
1960
ZEND_ACC_PRIVATE TSRMLS_CC );
@@ -2032,26 +2032,27 @@ zend_class_entry* field_type;
2032
2032
// Init class entry.
2033
2033
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Field" ,
2034
2034
Field , field )
2035
- zend_declare_property_null (field_type , "kind" , strlen ("kind" ),
2035
+ zend_declare_property_long (field_type , "kind" , strlen ("kind" ), 0 ,
2036
2036
ZEND_ACC_PRIVATE TSRMLS_CC );
2037
- zend_declare_property_null (field_type , "cardinality" , strlen ("cardinality" ),
2037
+ zend_declare_property_long (field_type , "cardinality" , strlen ("cardinality" ),
2038
+ 0 , ZEND_ACC_PRIVATE TSRMLS_CC );
2039
+ zend_declare_property_long (field_type , "number" , strlen ("number" ), 0 ,
2038
2040
ZEND_ACC_PRIVATE TSRMLS_CC );
2039
- zend_declare_property_null (field_type , "number" , strlen ("number" ),
2040
- ZEND_ACC_PRIVATE TSRMLS_CC );
2041
- zend_declare_property_null (field_type , "name" , strlen ("name" ),
2042
- ZEND_ACC_PRIVATE TSRMLS_CC );
2043
- zend_declare_property_null (field_type , "type_url" , strlen ("type_url" ),
2044
- ZEND_ACC_PRIVATE TSRMLS_CC );
2045
- zend_declare_property_null (field_type , "oneof_index" , strlen ("oneof_index" ),
2046
- ZEND_ACC_PRIVATE TSRMLS_CC );
2047
- zend_declare_property_null (field_type , "packed" , strlen ("packed" ),
2041
+ zend_declare_property_string (field_type , "name" , strlen ("name" ), "" ,
2042
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2043
+ zend_declare_property_string (field_type , "type_url" , strlen ("type_url" ), "" ,
2044
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2045
+ zend_declare_property_long (field_type , "oneof_index" , strlen ("oneof_index" ),
2046
+ 0 , ZEND_ACC_PRIVATE TSRMLS_CC );
2047
+ zend_declare_property_bool (field_type , "packed" , strlen ("packed" ), false,
2048
2048
ZEND_ACC_PRIVATE TSRMLS_CC );
2049
2049
zend_declare_property_null (field_type , "options" , strlen ("options" ),
2050
2050
ZEND_ACC_PRIVATE TSRMLS_CC );
2051
- zend_declare_property_null (field_type , "json_name" , strlen ("json_name" ),
2052
- ZEND_ACC_PRIVATE TSRMLS_CC );
2053
- zend_declare_property_null (field_type , "default_value" , strlen ("default_value" ),
2054
- ZEND_ACC_PRIVATE TSRMLS_CC );
2051
+ zend_declare_property_string (field_type , "json_name" , strlen ("json_name" ),
2052
+ "" , ZEND_ACC_PRIVATE TSRMLS_CC );
2053
+ zend_declare_property_string (field_type , "default_value" ,
2054
+ strlen ("default_value" ), "" ,
2055
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2055
2056
PHP_PROTO_INIT_SUBMSGCLASS_END
2056
2057
2057
2058
PHP_METHOD (Field , __construct ) {
@@ -2087,8 +2088,8 @@ zend_class_entry* float_value_type;
2087
2088
// Init class entry.
2088
2089
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\FloatValue" ,
2089
2090
FloatValue , float_value )
2090
- zend_declare_property_null (float_value_type , "value" , strlen ("value" ),
2091
- ZEND_ACC_PRIVATE TSRMLS_CC );
2091
+ zend_declare_property_double (float_value_type , "value" , strlen ("value" ), 0 ,
2092
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2092
2093
PHP_PROTO_INIT_SUBMSGCLASS_END
2093
2094
2094
2095
PHP_METHOD (FloatValue , __construct ) {
@@ -2138,7 +2139,7 @@ zend_class_entry* int32_value_type;
2138
2139
// Init class entry.
2139
2140
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Int32Value" ,
2140
2141
Int32Value , int32_value )
2141
- zend_declare_property_null (int32_value_type , "value" , strlen ("value" ),
2142
+ zend_declare_property_long (int32_value_type , "value" , strlen ("value" ), 0 ,
2142
2143
ZEND_ACC_PRIVATE TSRMLS_CC );
2143
2144
PHP_PROTO_INIT_SUBMSGCLASS_END
2144
2145
@@ -2166,7 +2167,7 @@ zend_class_entry* int64_value_type;
2166
2167
// Init class entry.
2167
2168
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Int64Value" ,
2168
2169
Int64Value , int64_value )
2169
- zend_declare_property_null (int64_value_type , "value" , strlen ("value" ),
2170
+ zend_declare_property_long (int64_value_type , "value" , strlen ("value" ), 0 ,
2170
2171
ZEND_ACC_PRIVATE TSRMLS_CC );
2171
2172
PHP_PROTO_INIT_SUBMSGCLASS_END
2172
2173
@@ -2234,19 +2235,23 @@ zend_class_entry* method_type;
2234
2235
// Init class entry.
2235
2236
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Method" ,
2236
2237
Method , method )
2237
- zend_declare_property_null (method_type , "name" , strlen ("name" ),
2238
- ZEND_ACC_PRIVATE TSRMLS_CC );
2239
- zend_declare_property_null (method_type , "request_type_url" , strlen ("request_type_url" ),
2240
- ZEND_ACC_PRIVATE TSRMLS_CC );
2241
- zend_declare_property_null (method_type , "request_streaming" , strlen ("request_streaming" ),
2238
+ zend_declare_property_string (method_type , "name" , strlen ("name" ), "" ,
2239
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2240
+ zend_declare_property_string (method_type , "request_type_url" ,
2241
+ strlen ("request_type_url" ), "" ,
2242
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2243
+ zend_declare_property_bool (method_type , "request_streaming" ,
2244
+ strlen ("request_streaming" ), 0 ,
2242
2245
ZEND_ACC_PRIVATE TSRMLS_CC );
2243
- zend_declare_property_null (method_type , "response_type_url" , strlen ("response_type_url" ),
2244
- ZEND_ACC_PRIVATE TSRMLS_CC );
2245
- zend_declare_property_null (method_type , "response_streaming" , strlen ("response_streaming" ),
2246
+ zend_declare_property_string (method_type , "response_type_url" ,
2247
+ strlen ("response_type_url" ), "" ,
2248
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2249
+ zend_declare_property_bool (method_type , "response_streaming" ,
2250
+ strlen ("response_streaming" ), 0 ,
2246
2251
ZEND_ACC_PRIVATE TSRMLS_CC );
2247
2252
zend_declare_property_null (method_type , "options" , strlen ("options" ),
2248
2253
ZEND_ACC_PRIVATE TSRMLS_CC );
2249
- zend_declare_property_null (method_type , "syntax" , strlen ("syntax" ),
2254
+ zend_declare_property_long (method_type , "syntax" , strlen ("syntax" ), 0 ,
2250
2255
ZEND_ACC_PRIVATE TSRMLS_CC );
2251
2256
PHP_PROTO_INIT_SUBMSGCLASS_END
2252
2257
@@ -2282,10 +2287,10 @@ zend_class_entry* mixin_type;
2282
2287
// Init class entry.
2283
2288
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Mixin" ,
2284
2289
Mixin , mixin )
2285
- zend_declare_property_null (mixin_type , "name" , strlen ("name" ),
2286
- ZEND_ACC_PRIVATE TSRMLS_CC );
2287
- zend_declare_property_null (mixin_type , "root" , strlen ("root" ),
2288
- ZEND_ACC_PRIVATE TSRMLS_CC );
2290
+ zend_declare_property_string (mixin_type , "name" , strlen ("name" ), "" ,
2291
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2292
+ zend_declare_property_string (mixin_type , "root" , strlen ("root" ), "" ,
2293
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2289
2294
PHP_PROTO_INIT_SUBMSGCLASS_END
2290
2295
2291
2296
PHP_METHOD (Mixin , __construct ) {
@@ -2315,8 +2320,8 @@ zend_class_entry* option_type;
2315
2320
// Init class entry.
2316
2321
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Option" ,
2317
2322
Option , option )
2318
- zend_declare_property_null (option_type , "name" , strlen ("name" ),
2319
- ZEND_ACC_PRIVATE TSRMLS_CC );
2323
+ zend_declare_property_string (option_type , "name" , strlen ("name" ), "" ,
2324
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2320
2325
zend_declare_property_null (option_type , "value" , strlen ("value" ),
2321
2326
ZEND_ACC_PRIVATE TSRMLS_CC );
2322
2327
PHP_PROTO_INIT_SUBMSGCLASS_END
@@ -2346,8 +2351,9 @@ zend_class_entry* source_context_type;
2346
2351
// Init class entry.
2347
2352
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\SourceContext" ,
2348
2353
SourceContext , source_context )
2349
- zend_declare_property_null (source_context_type , "file_name" , strlen ("file_name" ),
2350
- ZEND_ACC_PRIVATE TSRMLS_CC );
2354
+ zend_declare_property_string (source_context_type , "file_name" ,
2355
+ strlen ("file_name" ), "" ,
2356
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2351
2357
PHP_PROTO_INIT_SUBMSGCLASS_END
2352
2358
2353
2359
PHP_METHOD (SourceContext , __construct ) {
@@ -2374,8 +2380,8 @@ zend_class_entry* string_value_type;
2374
2380
// Init class entry.
2375
2381
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\StringValue" ,
2376
2382
StringValue , string_value )
2377
- zend_declare_property_null (string_value_type , "value" , strlen ("value" ),
2378
- ZEND_ACC_PRIVATE TSRMLS_CC );
2383
+ zend_declare_property_string (string_value_type , "value" , strlen ("value" ), "" ,
2384
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2379
2385
PHP_PROTO_INIT_SUBMSGCLASS_END
2380
2386
2381
2387
PHP_METHOD (StringValue , __construct ) {
@@ -2440,17 +2446,17 @@ zend_class_entry* type_type;
2440
2446
// Init class entry.
2441
2447
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\Type" ,
2442
2448
Type , type )
2443
- zend_declare_property_null (type_type , "name" , strlen ("name" ),
2444
- ZEND_ACC_PRIVATE TSRMLS_CC );
2449
+ zend_declare_property_string (type_type , "name" , strlen ("name" ), "" ,
2450
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2445
2451
zend_declare_property_null (type_type , "fields" , strlen ("fields" ),
2446
2452
ZEND_ACC_PRIVATE TSRMLS_CC );
2447
- zend_declare_property_null (type_type , "oneofs" , strlen ("oneofs" ),
2448
- ZEND_ACC_PRIVATE TSRMLS_CC );
2453
+ zend_declare_property_string (type_type , "oneofs" , strlen ("oneofs" ), "" ,
2454
+ ZEND_ACC_PRIVATE TSRMLS_CC );
2449
2455
zend_declare_property_null (type_type , "options" , strlen ("options" ),
2450
2456
ZEND_ACC_PRIVATE TSRMLS_CC );
2451
2457
zend_declare_property_null (type_type , "source_context" , strlen ("source_context" ),
2452
2458
ZEND_ACC_PRIVATE TSRMLS_CC );
2453
- zend_declare_property_null (type_type , "syntax" , strlen ("syntax" ),
2459
+ zend_declare_property_long (type_type , "syntax" , strlen ("syntax" ), 0 ,
2454
2460
ZEND_ACC_PRIVATE TSRMLS_CC );
2455
2461
PHP_PROTO_INIT_SUBMSGCLASS_END
2456
2462
@@ -2483,7 +2489,7 @@ zend_class_entry* u_int32_value_type;
2483
2489
// Init class entry.
2484
2490
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\UInt32Value" ,
2485
2491
UInt32Value , u_int32_value )
2486
- zend_declare_property_null (u_int32_value_type , "value" , strlen ("value" ),
2492
+ zend_declare_property_long (u_int32_value_type , "value" , strlen ("value" ), 0 ,
2487
2493
ZEND_ACC_PRIVATE TSRMLS_CC );
2488
2494
PHP_PROTO_INIT_SUBMSGCLASS_END
2489
2495
@@ -2511,7 +2517,7 @@ zend_class_entry* u_int64_value_type;
2511
2517
// Init class entry.
2512
2518
PHP_PROTO_INIT_SUBMSGCLASS_START ("Google\\Protobuf\\UInt64Value" ,
2513
2519
UInt64Value , u_int64_value )
2514
- zend_declare_property_null (u_int64_value_type , "value" , strlen ("value" ),
2520
+ zend_declare_property_long (u_int64_value_type , "value" , strlen ("value" ), 0 ,
2515
2521
ZEND_ACC_PRIVATE TSRMLS_CC );
2516
2522
PHP_PROTO_INIT_SUBMSGCLASS_END
2517
2523
0 commit comments