diff options
-rw-r--r-- | PHPINFO | 2 | ||||
-rw-r--r-- | REFLECTION | 667 | ||||
-rw-r--r-- | php-pecl-protobuf.spec | 375 |
3 files changed, 694 insertions, 350 deletions
@@ -1,7 +1,7 @@ protobuf -Version => 3.19.0 +Version => 4.31.1 Directive => Local Value => Master Value protobuf.keep_descriptor_pool_after_request => 0 => 0 @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { +Extension [ <persistent> extension #101 protobuf version 4.31.1 ] { - Dependencies { Dependency [ date (Optional) ] @@ -10,7 +10,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } - - Classes [56] { + - Classes [57] { Class [ <internal:protobuf> final class Google\Protobuf\Internal\Arena ] { - Constants [0] { @@ -29,7 +29,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } - 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] { } @@ -48,7 +48,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $type ] - Parameter #1 [ <optional> $class ] + Parameter #1 [ <optional> $class = <default> ] } } @@ -62,15 +62,17 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, prototype ArrayAccess> public method offsetExists ] { - Parameters [1] { - Parameter #0 [ <required> $index ] + Parameter #0 [ <optional> $index = <default> ] } + - Return [ bool ] } 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 ] { @@ -79,25 +81,29 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Parameter #0 [ <required> $index ] Parameter #1 [ <required> $newval ] } + - Return [ void ] } Method [ <internal:protobuf, prototype ArrayAccess> public method offsetUnset ] { - Parameters [1] { - Parameter #0 [ <required> $index ] + Parameter #0 [ <optional> $index = <default> ] } + - Return [ void ] } Method [ <internal:protobuf, prototype Countable> public method count ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:protobuf, prototype IteratorAggregate> public method getIterator ] { - Parameters [0] { } + - Return [ Traversable ] } } } @@ -121,30 +127,35 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:protobuf, prototype Iterator> public method current ] { - 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 ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:protobuf, prototype Iterator> public method valid ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -220,7 +231,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $value ] - Parameter #1 [ <optional> $check_utf8 ] + Parameter #1 [ <optional> $check_utf8 = <default> ] } } @@ -245,7 +256,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Parameter #0 [ <required> $value ] Parameter #1 [ <required> $key_type ] Parameter #2 [ <required> $value_type ] - Parameter #3 [ <optional> $value_class ] + Parameter #3 [ <optional> $value_class = <default> ] } } @@ -254,7 +265,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [3] { Parameter #0 [ <required> $value ] Parameter #1 [ <required> $type ] - Parameter #2 [ <optional> $class ] + Parameter #2 [ <optional> $class = <default> ] } } } @@ -442,7 +453,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Properties [0] { } - - Methods [7] { + - Methods [11] { Method [ <internal:protobuf> public method getName ] { - Parameters [0] { @@ -461,6 +472,18 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } + Method [ <internal:protobuf> public method isRequired ] { + + - Parameters [0] { + } + } + + Method [ <internal:protobuf> public method isRepeated ] { + + - Parameters [0] { + } + } + Method [ <internal:protobuf> public method getType ] { - Parameters [0] { @@ -479,6 +502,18 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } + Method [ <internal:protobuf> public method getContainingOneof ] { + + - Parameters [0] { + } + } + + Method [ <internal:protobuf> public method getRealContainingOneof ] { + + - Parameters [0] { + } + } + Method [ <internal:protobuf> public method getMessageType ] { - Parameters [0] { @@ -617,22 +652,24 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [3] { Parameter #0 [ <required> $key_type ] Parameter #1 [ <required> $value_type ] - Parameter #2 [ <optional> $value_class ] + Parameter #2 [ <optional> $value_class = <default> ] } } Method [ <internal:protobuf, prototype ArrayAccess> public method offsetExists ] { - Parameters [1] { - Parameter #0 [ <required> $index ] + Parameter #0 [ <optional> $index = <default> ] } + - Return [ bool ] } 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 ] { @@ -641,25 +678,29 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Parameter #0 [ <required> $index ] Parameter #1 [ <required> $newval ] } + - Return [ void ] } Method [ <internal:protobuf, prototype ArrayAccess> public method offsetUnset ] { - Parameters [1] { - Parameter #0 [ <required> $index ] + Parameter #0 [ <optional> $index = <default> ] } + - Return [ void ] } Method [ <internal:protobuf, prototype Countable> public method count ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:protobuf, prototype IteratorAggregate> public method getIterator ] { - Parameters [0] { } + - Return [ Traversable ] } } } @@ -683,30 +724,35 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:protobuf, prototype Iterator> public method current ] { - 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 ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:protobuf, prototype Iterator> public method valid ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -753,7 +799,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -761,7 +808,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -819,7 +866,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, ctor> protected method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } } @@ -866,7 +913,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -943,7 +990,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -951,7 +999,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -1049,7 +1097,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -1171,7 +1219,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -1179,7 +1228,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -1254,7 +1303,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -1376,7 +1425,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -1384,7 +1434,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -1459,7 +1509,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -1516,7 +1566,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -1524,7 +1575,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -1622,7 +1673,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -1679,7 +1730,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -1687,7 +1739,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -1785,7 +1837,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -1816,7 +1868,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -1824,7 +1877,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -1922,7 +1975,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -1966,7 +2019,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -1974,7 +2028,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -2072,7 +2126,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -2116,7 +2170,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -2124,7 +2179,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -2222,7 +2277,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -2266,7 +2321,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -2274,7 +2330,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -2349,7 +2405,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -2406,7 +2462,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -2414,7 +2471,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -2489,7 +2546,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -2604,7 +2661,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -2612,7 +2670,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -2687,7 +2745,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -2731,7 +2789,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -2739,7 +2798,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -2828,6 +2887,183 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } + 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] { @@ -2865,11 +3101,11 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Properties [0] { } - - Methods [26] { + - Methods [28] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -2951,6 +3187,19 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } + 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] { @@ -2978,7 +3227,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -2986,7 +3236,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -3061,7 +3311,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -3222,7 +3472,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -3230,7 +3481,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -3386,11 +3637,11 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Properties [0] { } - - Methods [24] { + - Methods [26] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -3459,6 +3710,19 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } + 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] { @@ -3486,7 +3750,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -3494,7 +3759,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -3569,7 +3834,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -3639,7 +3904,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -3647,7 +3913,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -3722,7 +3988,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -3779,7 +4045,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -3787,7 +4054,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -3846,9 +4113,10 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { 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] { @@ -3877,7 +4145,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } - Class [ <internal:protobuf> class GPBMetadata\Google\Protobuf\Timestamp ] { + Class [ <internal:protobuf> class GPBMetadata\Google\Protobuf\Wrappers ] { - Constants [0] { } @@ -3900,7 +4168,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } - 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] { } @@ -3914,53 +4182,27 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Properties [0] { } - - Methods [20] { + - Methods [16] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + 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 ] { + 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] { @@ -3988,7 +4230,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -3996,7 +4239,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -4053,30 +4296,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } - 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] { } @@ -4094,7 +4314,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -4138,7 +4358,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -4146,7 +4367,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -4203,7 +4424,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } - 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] { } @@ -4221,7 +4442,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -4265,7 +4486,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -4273,7 +4495,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -4330,7 +4552,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } - 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] { } @@ -4348,7 +4570,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -4392,7 +4614,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -4400,7 +4623,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -4457,7 +4680,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } - 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] { } @@ -4475,7 +4698,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -4519,7 +4742,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -4527,7 +4751,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -4584,7 +4808,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } - 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] { } @@ -4602,7 +4826,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -4646,7 +4870,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -4654,7 +4879,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -4711,7 +4936,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } - 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] { } @@ -4729,7 +4954,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -4773,7 +4998,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -4781,7 +5007,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -4838,7 +5064,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } - 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] { } @@ -4856,7 +5082,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -4900,7 +5126,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -4908,7 +5135,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -4965,7 +5192,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } - 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] { } @@ -4983,7 +5210,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $data ] + Parameter #0 [ <optional> $data = <default> ] } } @@ -5027,7 +5254,8 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { Method [ <internal:protobuf, inherits Google\Protobuf\Internal\Message> public method serializeToJsonString ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> $flags = <default> ] } } @@ -5035,7 +5263,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Parameters [2] { Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $arg ] + Parameter #1 [ <optional> $arg = <default> ] } } @@ -5092,9 +5320,11 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { } } - 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] { @@ -5106,116 +5336,7 @@ Extension [ <persistent> extension #126 protobuf version 3.19.0 ] { - Properties [0] { } - - Methods [16] { - Method [ <internal:protobuf, overwrites Google\Protobuf\Internal\Message, ctor> public method __construct ] { - - - Parameters [1] { - Parameter #0 [ <optional> $data ] - } - } - - 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 ] - } - } - - 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 93a6576..8207158 100644 --- a/php-pecl-protobuf.spec +++ b/php-pecl-protobuf.spec @@ -1,64 +1,44 @@ # remirepo spec file for php-pecl-protobuf # -# Copyright (c) 2016-2021 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} -%if 0%{?scl:1} -%global sub_prefix %{scl_prefix} -%scl_package php-pecl-protobuf -%endif - -%global pecl_name protobuf -%global with_zts 0 -%global ini_name 40-%{pecl_name}.ini -%global upstream_version 3.19.0 +%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: %{?sub_prefix}php-pecl-%{pecl_name} +Name: %{?scl_prefix}php-pecl-%{pecl_name} Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} -License: BSD +# protobuf extension is BSD +# third_party/utf8_range is MIT +License: BSD-3-Clause and MIT URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz 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} Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} -%if "%{?scl_prefix}" != "%{?sub_prefix}" -Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} -Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} -%endif - -%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} -# Other third party repo stuff -%if "%{php_version}" > "7.4" -Obsoletes: php74-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "8.0" -Obsoletes: php80-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "8.1" -Obsoletes: php81-pecl-%{pecl_name} <= %{version} -%endif -%endif %description @@ -72,16 +52,15 @@ 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"/' \ - %{?_licensedir: -e '/LICENSE/s/role="doc"/role="src"/' } \ - %{!?_licensedir:-e '/LICENSE/s/role="src"/role="doc"/' } \ + -e '/utf8_range/s/role="doc"/role="src"/' \ + -e '/LICENSE/s/role="doc"/role="src"/' \ -i package.xml +cd %{sources} +cp third_party/utf8_range/LICENSE LICENSE.utf8_range -cd NTS # Sanity check, really often broken extver=$(sed -n '/#define PHP_PROTOBUF_VERSION/{s/.* "//;s/".*$//;p}' protobuf.h) if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then @@ -90,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 @@ -108,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 @@ -129,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 @@ -142,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 @@ -155,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} @@ -201,6 +163,267 @@ 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 + +* Thu Dec 8 2022 Remi Collet <remi@remirepo.net> - 3.21.11-1 +- update to 3.21.11 + +* Thu Dec 1 2022 Remi Collet <remi@remirepo.net> - 3.21.10-1 +- update to 3.21.10 + +* Thu Oct 27 2022 Remi Collet <remi@remirepo.net> - 3.21.9-1 +- update to 3.21.9 (no change) + +* Wed Oct 19 2022 Remi Collet <remi@remirepo.net> - 3.21.8-1 +- update to 3.21.8 (no change) + +* Fri Sep 30 2022 Remi Collet <remi@remirepo.net> - 3.21.7-1 +- update to 3.21.7 (no change) + +* Wed Sep 14 2022 Remi Collet <remi@remirepo.net> - 3.21.6-1 +- update to 3.21.6 (no change) + +* Wed Aug 10 2022 Remi Collet <remi@remirepo.net> - 3.21.5-1 +- update to 3.21.5 + +* Tue Jul 26 2022 Remi Collet <remi@remirepo.net> - 3.21.4-1 +- update to 3.21.4 (no change) + +* Fri Jul 22 2022 Remi Collet <remi@remirepo.net> - 3.21.3-1 +- update to 3.21.3 + +* Mon Jun 27 2022 Remi Collet <remi@remirepo.net> - 3.21.2-1 +- update to 3.21.2 (no change) + +* Sat May 28 2022 Remi Collet <remi@remirepo.net> - 3.21.1-1 +- update to 3.21.1 (no change) + +* Thu May 26 2022 Remi Collet <remi@remirepo.net> - 3.21.0-1 +- update to 3.21.0 + +* Mon May 23 2022 Remi Collet <remi@remirepo.net> - 3.21.0~RC2-1 +- update to 3.21.0RC2 + +* Thu May 12 2022 Remi Collet <remi@remirepo.net> - 3.21.0~RC1-1 +- update to 3.21.0RC1 + +* Mon Apr 25 2022 Remi Collet <remi@remirepo.net> - 3.20.1-1 +- update to 3.20.1 + +* Thu Apr 7 2022 Remi Collet <remi@remirepo.net> - 3.20.1~RC1-1 +- update to 3.20.1RC1 + +* Sun Apr 3 2022 Remi Collet <remi@remirepo.net> - 3.20.0-1 +- update to 3.20.0 +- add MIT License + +* Mon Mar 21 2022 Remi Collet <remi@remirepo.net> - 3.20.0~RC2-1 +- update to 3.20.0RC2 + +* Mon Mar 7 2022 Remi Collet <remi@remirepo.net> - 3.20.0~RC1-1 +- update to 3.20.0RC1 + +* Mon Jan 31 2022 Remi Collet <remi@remirepo.net> - 3.19.4-1 +- update to 3.19.4 + +* Wed Jan 12 2022 Remi Collet <remi@remirepo.net> - 3.19.3-1 +- update to 3.19.3 (no change) + +* Thu Jan 6 2022 Remi Collet <remi@remirepo.net> - 3.19.2-1 +- update to 3.19.2 (no change) + +* Fri Oct 29 2021 Remi Collet <remi@remirepo.net> - 3.19.1-1 +- update to 3.19.1 (no change) + * Thu Oct 21 2021 Remi Collet <remi@remirepo.net> - 3.19.0-1 - update to 3.19.0 |