summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION513
-rw-r--r--php-pecl-protobuf.spec274
3 files changed, 524 insertions, 265 deletions
diff --git a/PHPINFO b/PHPINFO
index 639e6e8..c6d0890 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -1,7 +1,7 @@
protobuf
-Version => 3.21.12
+Version => 4.31.1
Directive => Local Value => Master Value
protobuf.keep_descriptor_pool_after_request => 0 => 0
diff --git a/REFLECTION b/REFLECTION
index ff1fd54..6afa633 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
+Extension [ <persistent> extension #101 protobuf version 4.31.1 ] {
- Dependencies {
Dependency [ date (Optional) ]
@@ -10,7 +10,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- - Classes [56] {
+ - Classes [57] {
Class [ <internal:protobuf> final class Google\Protobuf\Internal\Arena ] {
- Constants [0] {
@@ -29,7 +29,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- Class [ <internal:protobuf> <iterateable> final class Google\Protobuf\Internal\RepeatedField implements ArrayAccess, IteratorAggregate, Traversable, Countable ] {
+ Class [ <internal:protobuf> <iterateable> final class Google\Protobuf\RepeatedField implements ArrayAccess, IteratorAggregate, Traversable, Countable ] {
- Constants [0] {
}
@@ -70,8 +70,9 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, prototype ArrayAccess> public method offsetGet ] {
- Parameters [1] {
- Parameter #0 [ <required> $index ]
+ Parameter #0 [ <optional> $index = <default> ]
}
+ - Tentative return [ mixed ]
}
Method [ <internal:protobuf, prototype ArrayAccess> public method offsetSet ] {
@@ -133,12 +134,14 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
- Parameters [0] {
}
+ - Tentative return [ mixed ]
}
Method [ <internal:protobuf, prototype Iterator> public method key ] {
- Parameters [0] {
}
+ - Tentative return [ mixed ]
}
Method [ <internal:protobuf, prototype Iterator> public method next ] {
@@ -450,7 +453,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
- Properties [0] {
}
- - Methods [9] {
+ - Methods [11] {
Method [ <internal:protobuf> public method getName ] {
- Parameters [0] {
@@ -469,6 +472,18 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
+ Method [ <internal:protobuf> public method isRequired ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:protobuf> public method isRepeated ] {
+
+ - Parameters [0] {
+ }
+ }
+
Method [ <internal:protobuf> public method getType ] {
- Parameters [0] {
@@ -652,8 +667,9 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, prototype ArrayAccess> public method offsetGet ] {
- Parameters [1] {
- Parameter #0 [ <required> $index ]
+ Parameter #0 [ <optional> $index = <default> ]
}
+ - Tentative return [ mixed ]
}
Method [ <internal:protobuf, prototype ArrayAccess> public method offsetSet ] {
@@ -715,12 +731,14 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
- Parameters [0] {
}
+ - Tentative return [ mixed ]
}
Method [ <internal:protobuf, prototype Iterator> public method key ] {
- Parameters [0] {
}
+ - Tentative return [ mixed ]
}
Method [ <internal:protobuf, prototype Iterator> public method next ] {
@@ -781,7 +799,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -971,7 +990,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -1199,7 +1219,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -1404,7 +1425,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -1544,7 +1566,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -1707,7 +1730,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -1844,7 +1868,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -1994,7 +2019,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -2144,7 +2170,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -2294,7 +2321,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -2434,7 +2462,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -2632,7 +2661,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -2759,7 +2789,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -2856,6 +2887,183 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
+ Class [ <internal:protobuf> class GPBMetadata\Google\Protobuf\Timestamp ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:protobuf> static public method initOnce ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+
+ Class [ <internal:protobuf> final class Google\Protobuf\Timestamp extends Google\Protobuf\Internal\Message ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [20] {
+ Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> $data = <default> ]
+ }
+ }
+
+ Method [ <internal:protobuf> public method getSeconds ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:protobuf> public method setSeconds ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:protobuf> public method getNanos ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:protobuf> public method setNanos ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:protobuf> public method fromDateTime ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $datetime ]
+ }
+ }
+
+ Method [ <internal:protobuf> public method toDateTime ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method clear ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method discardUnknownFields ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToString ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method mergeFromString ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $data ]
+ }
+ }
+
+ Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
+ }
+ }
+
+ Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method mergeFromJsonString ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $data ]
+ Parameter #1 [ <optional> $arg = <default> ]
+ }
+ }
+
+ Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method mergeFrom ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $data ]
+ }
+ }
+
+ Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> protected method readWrapperValue ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $field ]
+ }
+ }
+
+ Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> protected method writeWrapperValue ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $field ]
+ Parameter #1 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> protected method hasOneof ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $field ]
+ }
+ }
+
+ Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> protected method readOneof ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $field ]
+ }
+ }
+
+ Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> protected method writeOneof ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $field ]
+ Parameter #1 [ <required> $value ]
+ }
+ }
+
+ Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> protected method whichOneof ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $field ]
+ }
+ }
+ }
+ }
+
Class [ <internal:protobuf> class GPBMetadata\Google\Protobuf\Type ] {
- Constants [0] {
@@ -2893,7 +3101,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
- Properties [0] {
}
- - Methods [26] {
+ - Methods [28] {
Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] {
- Parameters [1] {
@@ -2979,6 +3187,19 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
+ Method [ <internal:protobuf> public method getEdition ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:protobuf> public method setEdition ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $value ]
+ }
+ }
+
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method clear ] {
- Parameters [0] {
@@ -3006,7 +3227,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -3250,7 +3472,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -3414,7 +3637,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
- Properties [0] {
}
- - Methods [24] {
+ - Methods [26] {
Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] {
- Parameters [1] {
@@ -3487,6 +3710,19 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
+ Method [ <internal:protobuf> public method getEdition ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:protobuf> public method setEdition ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $value ]
+ }
+ }
+
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method clear ] {
- Parameters [0] {
@@ -3514,7 +3750,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -3667,7 +3904,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -3807,7 +4045,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -3874,9 +4113,10 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Class [ <internal:protobuf> class Google\Protobuf\Syntax ] {
- - Constants [2] {
+ - Constants [3] {
Constant [ public int SYNTAX_PROTO2 ] { 0 }
Constant [ public int SYNTAX_PROTO3 ] { 1 }
+ Constant [ public int SYNTAX_EDITIONS ] { 2 }
}
- Static properties [0] {
@@ -3905,7 +4145,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- Class [ <internal:protobuf> class GPBMetadata\Google\Protobuf\Timestamp ] {
+ Class [ <internal:protobuf> class GPBMetadata\Google\Protobuf\Wrappers ] {
- Constants [0] {
}
@@ -3928,7 +4168,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- Class [ <internal:protobuf> final class Google\Protobuf\Timestamp extends Google\Protobuf\Internal\Message ] {
+ Class [ <internal:protobuf> final class Google\Protobuf\DoubleValue extends Google\Protobuf\Internal\Message ] {
- Constants [0] {
}
@@ -3942,7 +4182,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
- Properties [0] {
}
- - Methods [20] {
+ - Methods [16] {
Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] {
- Parameters [1] {
@@ -3950,45 +4190,19 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- Method [ <internal:protobuf> public method getSeconds ] {
-
- - Parameters [0] {
- }
- }
-
- Method [ <internal:protobuf> public method setSeconds ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $value ]
- }
- }
-
- Method [ <internal:protobuf> public method getNanos ] {
+ Method [ <internal:protobuf> public method getValue ] {
- Parameters [0] {
}
}
- Method [ <internal:protobuf> public method setNanos ] {
+ Method [ <internal:protobuf> public method setValue ] {
- Parameters [1] {
Parameter #0 [ <required> $value ]
}
}
- Method [ <internal:protobuf> public method fromDateTime ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $datetime ]
- }
- }
-
- Method [ <internal:protobuf> public method toDateTime ] {
-
- - Parameters [0] {
- }
- }
-
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method clear ] {
- Parameters [0] {
@@ -4016,7 +4230,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -4081,30 +4296,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- Class [ <internal:protobuf> class GPBMetadata\Google\Protobuf\Wrappers ] {
-
- - Constants [0] {
- }
-
- - Static properties [0] {
- }
-
- - Static methods [1] {
- Method [ <internal:protobuf> static public method initOnce ] {
-
- - Parameters [0] {
- }
- }
- }
-
- - Properties [0] {
- }
-
- - Methods [0] {
- }
- }
-
- Class [ <internal:protobuf> final class Google\Protobuf\DoubleValue extends Google\Protobuf\Internal\Message ] {
+ Class [ <internal:protobuf> final class Google\Protobuf\FloatValue extends Google\Protobuf\Internal\Message ] {
- Constants [0] {
}
@@ -4166,7 +4358,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -4231,7 +4424,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- Class [ <internal:protobuf> final class Google\Protobuf\FloatValue extends Google\Protobuf\Internal\Message ] {
+ Class [ <internal:protobuf> final class Google\Protobuf\Int64Value extends Google\Protobuf\Internal\Message ] {
- Constants [0] {
}
@@ -4293,7 +4486,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -4358,7 +4552,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- Class [ <internal:protobuf> final class Google\Protobuf\Int64Value extends Google\Protobuf\Internal\Message ] {
+ Class [ <internal:protobuf> final class Google\Protobuf\UInt64Value extends Google\Protobuf\Internal\Message ] {
- Constants [0] {
}
@@ -4420,7 +4614,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -4485,7 +4680,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- Class [ <internal:protobuf> final class Google\Protobuf\UInt64Value extends Google\Protobuf\Internal\Message ] {
+ Class [ <internal:protobuf> final class Google\Protobuf\Int32Value extends Google\Protobuf\Internal\Message ] {
- Constants [0] {
}
@@ -4547,7 +4742,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -4612,7 +4808,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- Class [ <internal:protobuf> final class Google\Protobuf\Int32Value extends Google\Protobuf\Internal\Message ] {
+ Class [ <internal:protobuf> final class Google\Protobuf\UInt32Value extends Google\Protobuf\Internal\Message ] {
- Constants [0] {
}
@@ -4674,7 +4870,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -4739,7 +4936,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- Class [ <internal:protobuf> final class Google\Protobuf\UInt32Value extends Google\Protobuf\Internal\Message ] {
+ Class [ <internal:protobuf> final class Google\Protobuf\BoolValue extends Google\Protobuf\Internal\Message ] {
- Constants [0] {
}
@@ -4801,7 +4998,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -4866,7 +5064,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- Class [ <internal:protobuf> final class Google\Protobuf\BoolValue extends Google\Protobuf\Internal\Message ] {
+ Class [ <internal:protobuf> final class Google\Protobuf\StringValue extends Google\Protobuf\Internal\Message ] {
- Constants [0] {
}
@@ -4928,7 +5126,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -4993,7 +5192,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- Class [ <internal:protobuf> final class Google\Protobuf\StringValue extends Google\Protobuf\Internal\Message ] {
+ Class [ <internal:protobuf> final class Google\Protobuf\BytesValue extends Google\Protobuf\Internal\Message ] {
- Constants [0] {
}
@@ -5055,7 +5254,8 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> $flags = <default> ]
}
}
@@ -5120,9 +5320,11 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
}
}
- Class [ <internal:protobuf> final class Google\Protobuf\BytesValue extends Google\Protobuf\Internal\Message ] {
+ Class [ <internal:protobuf> class Google\Protobuf\PrintOptions ] {
- - Constants [0] {
+ - Constants [2] {
+ Constant [ public int PRESERVE_PROTO_FIELD_NAMES ] { 1 }
+ Constant [ public int ALWAYS_PRINT_ENUMS_AS_INTS ] { 2 }
}
- Static properties [0] {
@@ -5134,116 +5336,7 @@ Extension [ <persistent> extension #123 protobuf version 3.21.12 ] {
- Properties [0] {
}
- - Methods [16] {
- Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] {
-
- - Parameters [1] {
- Parameter #0 [ <optional> $data = <default> ]
- }
- }
-
- Method [ <internal:protobuf> public method getValue ] {
-
- - Parameters [0] {
- }
- }
-
- Method [ <internal:protobuf> public method setValue ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $value ]
- }
- }
-
- Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method clear ] {
-
- - Parameters [0] {
- }
- }
-
- Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method discardUnknownFields ] {
-
- - Parameters [0] {
- }
- }
-
- Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToString ] {
-
- - Parameters [0] {
- }
- }
-
- Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method mergeFromString ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $data ]
- }
- }
-
- Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] {
-
- - Parameters [0] {
- }
- }
-
- Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method mergeFromJsonString ] {
-
- - Parameters [2] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $arg = <default> ]
- }
- }
-
- Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method mergeFrom ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $data ]
- }
- }
-
- Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> protected method readWrapperValue ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $field ]
- }
- }
-
- Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> protected method writeWrapperValue ] {
-
- - Parameters [2] {
- Parameter #0 [ <required> $field ]
- Parameter #1 [ <required> $value ]
- }
- }
-
- Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> protected method hasOneof ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $field ]
- }
- }
-
- Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> protected method readOneof ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $field ]
- }
- }
-
- Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> protected method writeOneof ] {
-
- - Parameters [2] {
- Parameter #0 [ <required> $field ]
- Parameter #1 [ <required> $value ]
- }
- }
-
- Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> protected method whichOneof ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $field ]
- }
- }
+ - Methods [0] {
}
}
}
diff --git a/php-pecl-protobuf.spec b/php-pecl-protobuf.spec
index fcfb78b..8207158 100644
--- a/php-pecl-protobuf.spec
+++ b/php-pecl-protobuf.spec
@@ -1,22 +1,21 @@
# remirepo spec file for php-pecl-protobuf
#
-# Copyright (c) 2016-2022 Remi Collet
-# License: CC-BY-SA
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2016-2025 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
-# we don't want -z defs linker flag
-%undefine _strict_symbol_defs_build
+%{?scl:%scl_package php-pecl-protobuf}
-%{?scl:%scl_package php-pecl-protobuf}
-
-%global pecl_name protobuf
-%global with_zts 0
-%global ini_name 40-%{pecl_name}.ini
-%global upstream_version 3.21.12
+%global pecl_name protobuf
+%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
+%global ini_name 40-%{pecl_name}.ini
+%global upstream_version 4.31.1
#global upstream_prever RC2
+%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever}
+%global _configure ../%{sources}/configure
Summary: Mechanism for serializing structured data
Name: %{?scl_prefix}php-pecl-%{pecl_name}
@@ -30,12 +29,11 @@ Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstr
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
-BuildRequires: %{?scl_prefix}php-devel >= 7.0
+BuildRequires: %{?scl_prefix}php-devel >= 8.1
BuildRequires: %{?scl_prefix}php-pear
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
-%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
@@ -54,16 +52,13 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -q -c
-mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS
-
# Don't install/register tests
sed -e 's/role="test"/role="src"/' \
-e '/utf8_range/s/role="doc"/role="src"/' \
- %{?_licensedir: -e '/LICENSE/s/role="doc"/role="src"/' } \
- %{!?_licensedir:-e '/LICENSE/s/role="src"/role="doc"/' } \
+ -e '/LICENSE/s/role="doc"/role="src"/' \
-i package.xml
-cd NTS
+cd %{sources}
cp third_party/utf8_range/LICENSE LICENSE.utf8_range
# Sanity check, really often broken
@@ -74,9 +69,9 @@ if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
fi
cd ..
+mkdir NTS
%if %{with_zts}
-# duplicate for ZTS build
-cp -pr NTS ZTS
+mkdir ZTS
%endif
# Drop in the bit of configuration
@@ -92,20 +87,24 @@ EOF
%build
%{?dtsenable}
-cd NTS
-%{_bindir}/phpize
+cd %{sources}
+%{__phpize}
+sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global
+
+cd ../NTS
%configure \
--enable-protobuf \
- --with-php-config=%{_bindir}/php-config
-make %{?_smp_mflags}
+ --with-php-config=%{__phpconfig}
+
+%make_build
%if %{with_zts}
cd ../ZTS
-%{_bindir}/zts-phpize
%configure \
--enable-protobuf \
- --with-php-config=%{_bindir}/zts-php-config
-make %{?_smp_mflags}
+ --with-php-config=%{__ztsphpconfig}
+
+%make_build
%endif
@@ -113,12 +112,12 @@ make %{?_smp_mflags}
%{?dtsenable}
# Install the NTS stuff
-make -C NTS install INSTALL_ROOT=%{buildroot}
+%make_install -C NTS
install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
%if %{with_zts}
# Install the ZTS stuff
-make -C ZTS install INSTALL_ROOT=%{buildroot}
+%make_install -C ZTS
install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif
@@ -126,7 +125,7 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
# Test & Documentation
-cd NTS
+cd %{sources}
for i in $(grep 'role="test"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
do install -Dpm 644 $i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i
done
@@ -139,40 +138,19 @@ done
: Minimal load test for NTS extension
%{__php} --no-php-ini \
--define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
- --modules | grep %{pecl_name}
+ --modules | grep '^%{pecl_name}$'
%if %{with_zts}
: Minimal load test for ZTS extension
%{__ztsphp} --no-php-ini \
--define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
- --modules | grep %{pecl_name}
+ --modules | grep '^%{pecl_name}$'
%endif
-%if 0%{?fedora} < 24 && 0%{?rhel} < 8
-# when pear installed alone, after us
-%triggerin -- %{?scl_prefix}php-pear
-if [ -x %{__pecl} ] ; then
- %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
-fi
-
-# posttrans as pear can be installed after us
-%posttrans
-if [ -x %{__pecl} ] ; then
- %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
-fi
-
-%postun
-if [ $1 -eq 0 -a -x %{__pecl} ] ; then
- %{pecl_uninstall} %{pecl_name} >/dev/null || :
-fi
-%endif
-
-
%files
-%{?_licensedir:%license NTS/LICENSE*}
-%{!?_licensedir:%doc %{pecl_docdir}/%{pecl_name}}
+%license %{sources}/LICENSE*
%{pecl_xmldir}/%{name}.xml
%config(noreplace) %{php_inidir}/%{ini_name}
@@ -185,6 +163,194 @@ fi
%changelog
+* Thu May 29 2025 Remi Collet <remi@remirepo.net> - 4.31.1-1
+- update to 4.31.1 (no change)
+
+* Thu May 15 2025 Remi Collet <remi@remirepo.net> - 4.31.0-1
+- update to 4.31.0
+
+* Mon May 5 2025 Remi Collet <remi@remirepo.net> - 4.31.0~RC2-1
+- update to 4.31.0RC2
+
+* Tue Apr 22 2025 Remi Collet <remi@remirepo.net> - 4.31.0~RC1-1
+- update to 4.31.0RC1
+
+* Thu Mar 27 2025 Remi Collet <remi@remirepo.net> - 4.30.2-1
+- update to 4.30.2 (no change)
+
+* Fri Mar 14 2025 Remi Collet <remi@remirepo.net> - 4.30.1-1
+- update to 4.30.1 (no change)
+
+* Wed Mar 5 2025 Remi Collet <remi@remirepo.net> - 4.30.0-1
+- update to 4.30.0
+
+* Thu Feb 27 2025 Remi Collet <remi@remirepo.net> - 4.30.0~RC2-1
+- update to 4.30.0RC2
+
+* Wed Feb 5 2025 Remi Collet <remi@remirepo.net> - 4.30.0~RC1-1
+- update to 4.30.0RC1
+
+* Thu Jan 9 2025 Remi Collet <remi@remirepo.net> - 4.29.3-1
+- update to 4.29.3 (no change)
+
+* Wed Dec 18 2024 Remi Collet <remi@remirepo.net> - 4.29.2-1
+- update to 4.29.2 (no change)
+- re-license spec file to CECILL-2.1
+
+* Thu Dec 5 2024 Remi Collet <remi@remirepo.net> - 4.29.1-1
+- update to 4.29.1 (no change)
+
+* Thu Nov 28 2024 Remi Collet <remi@remirepo.net> - 4.29.0-1
+- update to 4.29.0
+
+* Tue Nov 19 2024 Remi Collet <remi@remirepo.net> - 4.29.0~RC3-1
+- update to 4.29.0RC3
+
+* Thu Oct 24 2024 Remi Collet <remi@remirepo.net> - 4.29.0~RC2-1
+- update to 4.29.0RC2 (no change)
+
+* Tue Oct 1 2024 Remi Collet <remi@remirepo.net> - 4.29.0~RC1-1
+- update to 4.29.0RC1
+
+* Thu Sep 19 2024 Remi Collet <remi@remirepo.net> - 4.28.2-1
+- update to 4.28.2 (no change)
+
+* Thu Sep 12 2024 Remi Collet <remi@remirepo.net> - 4.28.1-1
+- update to 4.28.1
+
+* Thu Aug 29 2024 Remi Collet <remi@remirepo.net> - 4.28.0-1
+- update to 4.28.0
+
+* Mon Aug 26 2024 Remi Collet <remi@remirepo.net> - 4.28.0~RC3-1
+- update to 4.28.0RC3 (no change)
+
+* Fri Aug 9 2024 Remi Collet <remi@remirepo.net> - 4.28.0~RC2-1
+- update to 4.28.0RC2 (no change)
+
+* Fri Jul 12 2024 Remi Collet <remi@remirepo.net> - 4.28.0~RC1-1
+- update to 4.28.0RC1
+
+* Mon Jul 1 2024 Remi Collet <remi@remirepo.net> - 4.27.2-1
+- update to 4.27.2
+
+* Thu Jun 6 2024 Remi Collet <remi@remirepo.net> - 4.27.1-1
+- update to 4.27.1 (no change)
+
+* Fri May 24 2024 Remi Collet <remi@remirepo.net> - 4.27.0-1
+- update to 4.27.0
+
+* Wed May 15 2024 Remi Collet <remi@remirepo.net> - 4.27.0~RC3-1
+- update to 4.27.0RC3
+
+* Mon May 13 2024 Remi Collet <remi@remirepo.net> - 4.27.0~RC2-1
+- update to 4.27.0RC2 (no change)
+
+* Fri Apr 19 2024 Remi Collet <remi@remirepo.net> - 4.27.0~RC1-1
+- update to 4.27.0RC1
+
+* Thu Mar 28 2024 Remi Collet <remi@remirepo.net> - 4.26.1-1
+- update to 4.26.1 (no change)
+
+* Thu Mar 14 2024 Remi Collet <remi@remirepo.net> - 4.26.0-1
+- update to 4.26.0
+
+* Thu Feb 29 2024 Remi Collet <remi@remirepo.net> - 4.26.0~RC3-1
+- update to 4.26.0RC3
+
+* Wed Feb 7 2024 Remi Collet <remi@remirepo.net> - 4.26.0~RC2-1
+- update to 4.26.0RC2
+
+* Tue Jan 30 2024 Remi Collet <remi@remirepo.net> - 4.26.0~RC1-1
+- update to 4.26.0RC1
+
+* Wed Jan 10 2024 Remi Collet <remi@remirepo.net> - 3.25.2-1
+- update to 3.25.2 (no change)
+
+* Thu Nov 16 2023 Remi Collet <remi@remirepo.net> - 3.25.1-1
+- update to 3.25.1 (no change)
+
+* Thu Nov 2 2023 Remi Collet <remi@remirepo.net> - 3.25.0-1
+- update to 3.25.0
+
+* Thu Oct 19 2023 Remi Collet <remi@remirepo.net> - 3.25.0~RC2-1
+- update to 3.25.0RC2 (no change)
+
+* Tue Oct 17 2023 Remi Collet <remi@remirepo.net> - 3.25.0~RC1-1
+- update to 3.25.0RC1
+- open https://github.com/protocolbuffers/protobuf/issues/14436
+ build broken with PHP 7.x
+- raise dependency on PHP 8.0
+
+* Thu Oct 5 2023 Remi Collet <remi@remirepo.net> - 3.24.4-1
+- update to 3.24.4 (no change)
+
+* Fri Sep 8 2023 Remi Collet <remi@remirepo.net> - 3.24.3-1
+- update to 3.24.3 (no change)
+
+* Wed Aug 30 2023 Remi Collet <remi@remirepo.net> - 3.24.2-2
+- rebuild for PHP 8.3.0RC1
+
+* Mon Aug 28 2023 Remi Collet <remi@remirepo.net> - 3.24.2-1
+- update to 3.24.2 (no change)
+
+* Sat Aug 19 2023 Remi Collet <remi@remirepo.net> - 3.24.1-1
+- update to 3.24.1 (no change)
+
+* Thu Aug 17 2023 Remi Collet <remi@remirepo.net> - 3.24.0-1
+- update to 3.24.0
+
+* Wed Aug 2 2023 Remi Collet <remi@remirepo.net> - 3.24.0~RC3-1
+- update to 3.24.0RC3 (no change)
+
+* Wed Jul 19 2023 Remi Collet <remi@remirepo.net> - 3.24.0~RC2-1
+- update to 3.24.0RC2
+
+* Mon Jul 17 2023 Remi Collet <remi@remirepo.net> - 3.24.0~RC1-2
+- enable ZTS build
+
+* Wed Jul 12 2023 Remi Collet <remi@remirepo.net> - 3.24.0~RC1-1
+- update to 3.24.0RC1
+
+* Fri Jul 7 2023 Remi Collet <remi@remirepo.net> - 3.23.4-1
+- update to 3.23.4 (no change)
+
+* Thu Jun 15 2023 Remi Collet <remi@remirepo.net> - 3.23.3-1
+- update to 3.23.3
+
+* Sun May 28 2023 Remi Collet <remi@remirepo.net> - 3.23.2-1
+- update to 3.23.2 (no change)
+- build out of sources tree
+
+* Fri May 19 2023 Remi Collet <remi@remirepo.net> - 3.23.1-1
+- update to 3.23.1 (no change)
+
+* Tue May 9 2023 Remi Collet <remi@remirepo.net> - 3.23.0-1
+- update to 3.23.0
+
+* Fri May 5 2023 Remi Collet <remi@remirepo.net> - 3.22.4-1
+- update to 3.22.4 (no change)
+
+* Tue May 2 2023 Remi Collet <remi@remirepo.net> - 3.23.0~RC2-1
+- update to 3.23.0RC2
+
+* Thu Apr 13 2023 Remi Collet <remi@remirepo.net> - 3.22.3-1
+- update to 3.22.3 (no change)
+
+* Wed Mar 8 2023 Remi Collet <remi@remirepo.net> - 3.22.1-1
+- update to 3.22.1
+
+* Fri Feb 17 2023 Remi Collet <remi@remirepo.net> - 3.22.0-1
+- update to 3.22.0
+
+* Mon Feb 13 2023 Remi Collet <remi@remirepo.net> - 3.22.0~RC3-1
+- update to 3.22.0RC3
+
+* Fri Feb 3 2023 Remi Collet <remi@remirepo.net> - 3.22.0~RC2-1
+- update to 3.22.0RC2
+
+* Tue Jan 31 2023 Remi Collet <remi@remirepo.net> - 3.22.0~RC1-1
+- update to 3.22.0RC1
+
* Wed Dec 14 2022 Remi Collet <remi@remirepo.net> - 3.21.12-1
- update to 3.21.12