diff options
author | Remi Collet <remi@remirepo.net> | 2022-05-30 07:29:36 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2022-05-30 07:29:36 +0200 |
commit | 67ea4f10208f1932e2002dc9ee6b1bad05c0dfd5 (patch) | |
tree | f7e5fef1b49a5b33a4b6af147ffeef433e6bb041 | |
parent | 82c2063ab3977ed4aa736405164e4e9f4fbf8f02 (diff) |
update to 3.0.7
-rw-r--r-- | PHPINFO | 4 | ||||
-rw-r--r-- | REFLECTION | 675 | ||||
-rw-r--r-- | php-pecl-event.spec | 16 |
3 files changed, 448 insertions, 247 deletions
@@ -7,5 +7,5 @@ Debug support => disabled Extra functionality support including HTTP, DNS, and RPC => enabled OpenSSL support => enabled Thread safety support => disabled -Extension version => 3.0.6 -libevent2 headers version => 2.1.8-stable +Extension version => 3.0.7 +libevent2 headers version => 2.1.12-stable @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #124 event version 3.0.6 ] { +Extension [ <persistent> extension #120 event version 3.0.7 ] { - Dependencies { Dependency [ sockets (Required) ] @@ -28,31 +28,34 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:event> static public method timer ] { - Parameters [3] { Parameter #0 [ <required> EventBase $base ] - Parameter #1 [ <required> $cb ] - Parameter #2 [ <optional> $arg ] + Parameter #1 [ <required> callable $cb ] + Parameter #2 [ <optional> mixed $arg = null ] } + - Return [ Event ] } Method [ <internal:event> static public method signal ] { - Parameters [4] { Parameter #0 [ <required> EventBase $base ] - Parameter #1 [ <required> $signum ] - Parameter #2 [ <required> $cb ] - Parameter #3 [ <optional> $arg ] + Parameter #1 [ <required> int $signum ] + Parameter #2 [ <required> callable $cb ] + Parameter #3 [ <optional> mixed $arg = null ] } + - Return [ Event ] } } - Properties [2] { - Property [ <default> public $pending ] - Property [ <default> public $data ] + Property [ public $pending = NULL ] + Property [ public $data = NULL ] } - Methods [13] { @@ -60,10 +63,10 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [5] { Parameter #0 [ <required> EventBase $base ] - Parameter #1 [ <required> $fd ] - Parameter #2 [ <required> $what ] - Parameter #3 [ <required> $cb ] - Parameter #4 [ <optional> $arg ] + Parameter #1 [ <required> mixed $fd ] + Parameter #2 [ <required> int $what ] + Parameter #3 [ <required> callable $cb ] + Parameter #4 [ <optional> mixed $arg = null ] } } @@ -71,85 +74,97 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method set ] { - Parameters [5] { Parameter #0 [ <required> EventBase $base ] - Parameter #1 [ <required> $fd ] - Parameter #2 [ <optional> $what ] - Parameter #3 [ <optional> $cb ] - Parameter #4 [ <optional> $arg ] + Parameter #1 [ <required> mixed $fd ] + Parameter #2 [ <optional> int $what = null ] + Parameter #3 [ <optional> ?callable $cb = null ] + Parameter #4 [ <optional> mixed $arg = null ] } + - Return [ bool ] } Method [ <internal:event> public method add ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout ] + Parameter #0 [ <optional> float $timeout = -1 ] } + - Return [ bool ] } Method [ <internal:event> public method del ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:event> public method setPriority ] { - Parameters [1] { - Parameter #0 [ <required> $priority ] + Parameter #0 [ <required> int $priority ] } + - Return [ bool ] } Method [ <internal:event> public method pending ] { - Parameters [1] { - Parameter #0 [ <required> $flags ] + Parameter #0 [ <required> int $flags ] } + - Return [ bool ] } Method [ <internal:event> public method removeTimer ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:event> public method setTimer ] { - Parameters [3] { Parameter #0 [ <required> EventBase $base ] - Parameter #1 [ <required> $cb ] - Parameter #2 [ <optional> $arg ] + Parameter #1 [ <required> callable $cb ] + Parameter #2 [ <optional> mixed $arg = null ] } + - Return [ bool ] } Method [ <internal:event> public method addTimer ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout ] + Parameter #0 [ <optional> float $timeout = -1 ] } + - Return [ bool ] } Method [ <internal:event> public method delTimer ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:event> public method addSignal ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout ] + Parameter #0 [ <optional> float $timeout = -1 ] } + - Return [ bool ] } Method [ <internal:event> public method delSignal ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -176,11 +191,11 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Properties [0] { } - - Methods [17] { + - Methods [18] { Method [ <internal:event, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $cfg ] + Parameter #0 [ <optional> ?EventConfig $cfg = null ] } } @@ -188,99 +203,123 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:event> final public method __wakeup ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method getMethod ] { - Parameters [0] { } + - Return [ string ] } Method [ <internal:event> public method getFeatures ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:event> public method priorityInit ] { - Parameters [1] { - Parameter #0 [ <required> $n_priorities ] + Parameter #0 [ <required> int $n_priorities ] } + - Return [ bool ] } Method [ <internal:event> public method loop ] { - Parameters [1] { - Parameter #0 [ <optional> $flags ] + Parameter #0 [ <optional> int $flags = -1 ] } + - Return [ bool ] } Method [ <internal:event> public method dispatch ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:event> public method exit ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout ] + Parameter #0 [ <optional> float $timeout = 0.0 ] } + - Return [ bool ] + } + + Method [ <internal:event> public method set ] { + + - Parameters [1] { + Parameter #0 [ <required> Event $event ] + } + - Return [ bool ] } Method [ <internal:event> public method stop ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:event> public method gotStop ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:event> public method gotExit ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:event> public method getTimeOfDayCached ] { - Parameters [0] { } + - Return [ float ] } Method [ <internal:event> public method reInit ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:event> public method free ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method updateCacheTime ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:event> public method resume ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -313,42 +352,48 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:event> final public method __wakeup ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method avoidMethod ] { - Parameters [1] { - Parameter #0 [ <required> $method ] + Parameter #0 [ <required> string $method ] } + - Return [ bool ] } Method [ <internal:event> public method requireFeatures ] { - Parameters [1] { - Parameter #0 [ <required> $feature ] + Parameter #0 [ <required> int $feature ] } + - Return [ bool ] } Method [ <internal:event> public method setMaxDispatchInterval ] { - Parameters [3] { - Parameter #0 [ <required> $max_interval ] - Parameter #1 [ <required> $max_callbacks ] - Parameter #2 [ <required> $min_priority ] + Parameter #0 [ <required> int $max_interval ] + Parameter #1 [ <required> int $max_callbacks ] + Parameter #2 [ <required> int $min_priority ] } + - Return [ void ] } Method [ <internal:event> public method setFlags ] { - Parameters [1] { - Parameter #0 [ <required> $flags ] + Parameter #0 [ <required> int $flags ] } + - Return [ bool ] } } } @@ -374,66 +419,59 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Static properties [0] { } - - Static methods [4] { + - Static methods [3] { Method [ <internal:event> static public method createPair ] { - Parameters [2] { Parameter #0 [ <required> EventBase $base ] - Parameter #1 [ <optional> $options ] - } - } - - Method [ <internal, deprecated:event> static public method sslFilter ] { - - - Parameters [5] { - Parameter #0 [ <required> $unused ] - Parameter #1 [ <required> EventBufferEvent $underlying ] - Parameter #2 [ <required> EventSslContext $ctx ] - Parameter #3 [ <required> $state ] - Parameter #4 [ <optional> $options ] + Parameter #1 [ <optional> int $options = 0 ] } + - Return [ array|false ] } Method [ <internal:event> static public method createSslFilter ] { - Parameters [4] { - Parameter #0 [ <required> EventBufferEvent $underlying ] + Parameter #0 [ <required> EventBufferEvent $unnderlying ] Parameter #1 [ <required> EventSslContext $ctx ] - Parameter #2 [ <required> $state ] - Parameter #3 [ <optional> $options ] + Parameter #2 [ <required> int $state ] + Parameter #3 [ <optional> int $options = 0 ] } + - Return [ EventBufferEvent ] } Method [ <internal:event> static public method sslSocket ] { - Parameters [5] { Parameter #0 [ <required> EventBase $base ] - Parameter #1 [ <required> $socket ] + Parameter #1 [ <required> mixed $socket ] Parameter #2 [ <required> EventSslContext $ctx ] - Parameter #3 [ <required> $state ] - Parameter #4 [ <optional> $options ] + Parameter #3 [ <required> int $state ] + Parameter #4 [ <optional> int $options = 0 ] } + - Return [ EventBufferEvent ] } } - Properties [5] { - Property [ <default> public $priority ] - Property [ <default> public $fd ] - Property [ <default> public $input ] - Property [ <default> public $output ] - Property [ <default> public $allow_ssl_dirty_shutdown ] + Property [ public $priority = NULL ] + Property [ public $fd = NULL ] + Property [ public $input = NULL ] + Property [ public $output = NULL ] + Property [ public $allow_ssl_dirty_shutdown = NULL ] } - Methods [25] { Method [ <internal:event, ctor> public method __construct ] { - - Parameters [6] { + - Parameters [7] { Parameter #0 [ <required> EventBase $base ] - Parameter #1 [ <optional> $socket ] - Parameter #2 [ <optional> $options ] - Parameter #3 [ <optional> $readcb ] - Parameter #4 [ <optional> $writecb ] - Parameter #5 [ <optional> $eventcb ] + Parameter #1 [ <optional> mixed $socket = null ] + Parameter #2 [ <optional> int $options = 0 ] + Parameter #3 [ <optional> ?callable $readcb = null ] + Parameter #4 [ <optional> ?callable $writecb = null ] + Parameter #5 [ <optional> ?callable $eventcb = null ] + Parameter #6 [ <optional> mixed $arg = null ] } } @@ -441,165 +479,189 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method close ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method connect ] { - Parameters [1] { - Parameter #0 [ <required> $addr ] + Parameter #0 [ <required> string $addr ] } + - Return [ bool ] } Method [ <internal:event> public method connectHost ] { - Parameters [4] { - Parameter #0 [ <required> $dns_base ] - Parameter #1 [ <required> $hostname ] - Parameter #2 [ <required> $port ] - Parameter #3 [ <optional> $family ] + Parameter #0 [ <required> ?EventDnsBase $dns_base ] + Parameter #1 [ <required> string $hostname ] + Parameter #2 [ <required> int $port ] + Parameter #3 [ <optional> int $family = EventUtil::AF_UNSPEC ] } + - Return [ bool ] } Method [ <internal:event> public method getDnsErrorString ] { - Parameters [0] { } + - Return [ string ] } Method [ <internal:event> public method setCallbacks ] { - Parameters [4] { - Parameter #0 [ <required> $readcb ] - Parameter #1 [ <required> $writecb ] - Parameter #2 [ <required> $eventcb ] - Parameter #3 [ <optional> $arg ] + Parameter #0 [ <required> ?callable $readcb ] + Parameter #1 [ <required> ?callable $writecb ] + Parameter #2 [ <required> ?callable $eventcb ] + Parameter #3 [ <optional> mixed $arg = null ] } + - Return [ void ] } Method [ <internal:event> public method enable ] { - Parameters [1] { - Parameter #0 [ <required> $events ] + Parameter #0 [ <required> int $events ] } + - Return [ bool ] } Method [ <internal:event> public method disable ] { - Parameters [1] { - Parameter #0 [ <required> $events ] + Parameter #0 [ <required> int $events ] } + - Return [ bool ] } Method [ <internal:event> public method getEnabled ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:event> public method getInput ] { - Parameters [0] { } + - Return [ EventBuffer ] } Method [ <internal:event> public method getOutput ] { - Parameters [0] { } + - Return [ EventBuffer ] } Method [ <internal:event> public method setWatermark ] { - Parameters [3] { - Parameter #0 [ <required> $events ] - Parameter #1 [ <required> $lowmark ] - Parameter #2 [ <required> $highmark ] + Parameter #0 [ <required> int $events ] + Parameter #1 [ <required> int $lowmark ] + Parameter #2 [ <required> int $highmark ] } + - Return [ void ] } Method [ <internal:event> public method write ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> string $data ] } + - Return [ bool ] } Method [ <internal:event> public method writeBuffer ] { - Parameters [1] { - Parameter #0 [ <required> $buf ] + Parameter #0 [ <required> EventBuffer $buf ] } + - Return [ bool ] } Method [ <internal:event> public method read ] { - Parameters [1] { - Parameter #0 [ <required> $size ] + Parameter #0 [ <required> int $size ] } + - Return [ ?string ] } Method [ <internal:event> public method readBuffer ] { - Parameters [1] { - Parameter #0 [ <required> $buf ] + Parameter #0 [ <required> EventBuffer $buf ] } + - Return [ bool ] } Method [ <internal:event> public method setPriority ] { - Parameters [1] { - Parameter #0 [ <required> $priority ] + Parameter #0 [ <required> int $priority ] } + - Return [ bool ] } Method [ <internal:event> public method setTimeouts ] { - Parameters [2] { - Parameter #0 [ <required> $timeout_read ] - Parameter #1 [ <required> $timeout_write ] + Parameter #0 [ <required> float $timeout_read ] + Parameter #1 [ <required> float $timeout_write ] } + - Return [ bool ] } Method [ <internal:event> public method sslError ] { - Parameters [0] { } + - Return [ string ] } Method [ <internal:event> public method sslRenegotiate ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method sslGetCipherInfo ] { - Parameters [0] { } + - Return [ string ] } Method [ <internal:event> public method sslGetCipherName ] { - Parameters [0] { } + - Return [ string ] } Method [ <internal:event> public method sslGetCipherVersion ] { - Parameters [0] { } + - Return [ string ] } Method [ <internal:event> public method sslGetProtocol ] { - Parameters [0] { } + - Return [ string ] } } } @@ -623,8 +685,8 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { } - Properties [2] { - Property [ <default> public $length ] - Property [ <default> public $contiguous_space ] + Property [ public $length = NULL ] + Property [ public $contiguous_space = NULL ] } - Methods [22] { @@ -637,153 +699,176 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { Method [ <internal:event> public method freeze ] { - Parameters [1] { - Parameter #0 [ <required> $at_front ] + Parameter #0 [ <required> bool $at_front ] } + - Return [ bool ] } Method [ <internal:event> public method unfreeze ] { - Parameters [1] { - Parameter #0 [ <required> $at_front ] + Parameter #0 [ <required> bool $at_front ] } + - Return [ bool ] } Method [ <internal:event> public method lock ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <required> bool $at_front ] } + - Return [ void ] } Method [ <internal:event> public method unlock ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <required> bool $at_front ] } + - Return [ void ] } Method [ <internal:event> public method enableLocking ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method add ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> string $data ] } + - Return [ bool ] } - Method [ <internal:event> public method addBuffer ] { + Method [ <internal:event> public method read ] { - Parameters [1] { - Parameter #0 [ <required> $buf ] + Parameter #0 [ <required> int $max_bytes ] } + - Return [ string ] } - Method [ <internal:event> public method appendFrom ] { + Method [ <internal:event> public method addBuffer ] { - - Parameters [2] { - Parameter #0 [ <required> $buf ] - Parameter #1 [ <required> $len ] + - Parameters [1] { + Parameter #0 [ <required> EventBuffer $buf ] } + - Return [ bool ] } - Method [ <internal:event> public method read ] { + Method [ <internal:event> public method appendFrom ] { - - Parameters [1] { - Parameter #0 [ <required> $max_bytes ] + - Parameters [2] { + Parameter #0 [ <required> EventBuffer $buf ] + Parameter #1 [ <required> int $len ] } + - Return [ int ] } Method [ <internal:event> public method expand ] { - Parameters [1] { - Parameter #0 [ <required> $len ] + Parameter #0 [ <required> int $len ] } + - Return [ bool ] } Method [ <internal:event> public method prepend ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> string $data ] } + - Return [ bool ] } Method [ <internal:event> public method prependBuffer ] { - Parameters [1] { - Parameter #0 [ <required> $buf ] + Parameter #0 [ <required> EventBuffer $buf ] } + - Return [ bool ] } Method [ <internal:event> public method drain ] { - Parameters [1] { - Parameter #0 [ <required> $len ] + Parameter #0 [ <required> int $len ] } + - Return [ bool ] } Method [ <internal:event> public method copyout ] { - Parameters [2] { - Parameter #0 [ <required> &$data ] - Parameter #1 [ <required> $max_bytes ] + Parameter #0 [ <required> string &$data ] + Parameter #1 [ <required> int $max_bytes ] } + - Return [ int ] } Method [ <internal:event> public method readLine ] { - Parameters [1] { - Parameter #0 [ <required> $eol_style ] + Parameter #0 [ <required> int $eol_style ] } + - Return [ ?string ] } Method [ <internal:event> public method search ] { - Parameters [3] { - Parameter #0 [ <required> $what ] - Parameter #1 [ <optional> $start ] - Parameter #2 [ <optional> $end ] + Parameter #0 [ <required> string $what ] + Parameter #1 [ <optional> int $start = -1 ] + Parameter #2 [ <optional> int $end = -1 ] } + - Return [ int|false ] } Method [ <internal:event> public method searchEol ] { - Parameters [2] { - Parameter #0 [ <optional> $start ] - Parameter #1 [ <optional> $eol_style ] + Parameter #0 [ <optional> int $start = -1 ] + Parameter #1 [ <optional> int $eol_style = EventBuffer::EOL_ANY ] } + - Return [ int|false ] } Method [ <internal:event> public method pullup ] { - Parameters [1] { - Parameter #0 [ <required> $size ] + Parameter #0 [ <required> int $size ] } + - Return [ ?string ] } Method [ <internal:event> public method write ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $howmuch ] + Parameter #0 [ <required> mixed $fd ] + Parameter #1 [ <optional> int $howmuch = -1 ] } + - Return [ int|false ] } Method [ <internal:event> public method readFrom ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $howmuch ] + Parameter #0 [ <required> mixed $fd ] + Parameter #1 [ <optional> int $howmuch = -1 ] } + - Return [ int|false ] } Method [ <internal:event> public method substr ] { - Parameters [2] { - Parameter #0 [ <required> $start ] - Parameter #1 [ <optional> $length ] + Parameter #0 [ <required> int $start ] + Parameter #1 [ <optional> int $length = -1 ] } + - Return [ string|false ] } } } @@ -812,64 +897,72 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [2] { Parameter #0 [ <required> EventBase $base ] - Parameter #1 [ <required> $initialize ] + Parameter #1 [ <required> bool $initialize ] } } Method [ <internal:event> public method parseResolvConf ] { - Parameters [2] { - Parameter #0 [ <required> $flags ] - Parameter #1 [ <required> $filename ] + Parameter #0 [ <required> int $flags ] + Parameter #1 [ <required> string $filename ] } + - Return [ bool ] } Method [ <internal:event> public method addNameserverIp ] { - Parameters [1] { - Parameter #0 [ <required> $ip ] + Parameter #0 [ <required> string $ip ] } + - Return [ bool ] } Method [ <internal:event> public method loadHosts ] { - Parameters [1] { - Parameter #0 [ <required> $hosts ] + Parameter #0 [ <required> string $hosts ] } + - Return [ bool ] } Method [ <internal:event> public method clearSearch ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method addSearch ] { - Parameters [1] { - Parameter #0 [ <required> $domain ] + Parameter #0 [ <required> string $domain ] } + - Return [ void ] } Method [ <internal:event> public method setSearchNdots ] { - Parameters [1] { - Parameter #0 [ <required> $ndots ] + Parameter #0 [ <required> int $ndots ] } + - Return [ void ] } Method [ <internal:event> public method setOption ] { - Parameters [2] { - Parameter #0 [ <required> $option ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $option ] + Parameter #1 [ <required> string $value ] } + - Return [ bool ] } Method [ <internal:event> public method countNameservers ] { - Parameters [0] { } + - Return [ int ] } } } @@ -893,7 +986,7 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { } - Properties [1] { - Property [ <default> public $fd ] + Property [ public $fd = NULL ] } - Methods [10] { @@ -901,11 +994,11 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [6] { Parameter #0 [ <required> EventBase $base ] - Parameter #1 [ <required> $cb ] - Parameter #2 [ <required> $data ] - Parameter #3 [ <required> $flags ] - Parameter #4 [ <required> $backlog ] - Parameter #5 [ <required> $target ] + Parameter #1 [ <required> callable $cb ] + Parameter #2 [ <required> mixed $data ] + Parameter #3 [ <required> int $flags ] + Parameter #4 [ <required> int $backlog ] + Parameter #5 [ <required> mixed $target ] } } @@ -913,59 +1006,68 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:event> final public method __wakeup ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method free ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method enable ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:event> public method disable ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:event> public method setCallback ] { - Parameters [2] { - Parameter #0 [ <required> $cb ] - Parameter #1 [ <optional> $arg ] + Parameter #0 [ <required> callable $cb ] + Parameter #1 [ <optional> mixed $arg = null ] } + - Return [ void ] } Method [ <internal:event> public method setErrorCallback ] { - Parameters [1] { - Parameter #0 [ <required> $cb ] + Parameter #0 [ <required> callable $cb ] } + - Return [ void ] } - Method [ <internal:event> public method getSocketName ] { + Method [ <internal:event> public method getBase ] { - - Parameters [2] { - Parameter #0 [ <required> &$address ] - Parameter #1 [ <optional> &$port ] + - Parameters [0] { } + - Return [ EventBase ] } - Method [ <internal:event> public method getBase ] { + Method [ <internal:event> public method getSocketName ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ <required> mixed &$address ] + Parameter #1 [ <required> mixed &$port ] } + - Return [ bool ] } } } @@ -989,10 +1091,10 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [5] { Parameter #0 [ <required> EventBase $base ] - Parameter #1 [ <required> $dns_base ] - Parameter #2 [ <required> $address ] - Parameter #3 [ <required> $port ] - Parameter #4 [ <required> EventSslContext $ctx ] + Parameter #1 [ <required> ?EventDnsBase $dns_base ] + Parameter #2 [ <required> string $address ] + Parameter #3 [ <required> int $port ] + Parameter #4 [ <optional> ?EventSslContext $ctx = null ] } } @@ -1000,85 +1102,97 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:event> final public method __wakeup ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method getBase ] { - Parameters [0] { } + - Return [ EventBase|false ] } Method [ <internal:event> public method getPeer ] { - Parameters [2] { - Parameter #0 [ <required> &$address ] - Parameter #1 [ <required> &$port ] + Parameter #0 [ <required> mixed &$address ] + Parameter #1 [ <required> mixed &$port ] } + - Return [ void ] } Method [ <internal:event> public method setLocalAddress ] { - Parameters [1] { - Parameter #0 [ <required> $address ] + Parameter #0 [ <required> string $address ] } + - Return [ void ] } Method [ <internal:event> public method setLocalPort ] { - Parameters [1] { - Parameter #0 [ <required> $port ] + Parameter #0 [ <required> int $port ] } + - Return [ void ] } Method [ <internal:event> public method setTimeout ] { - Parameters [1] { - Parameter #0 [ <required> $timeout ] + Parameter #0 [ <required> int $timeout ] } + - Return [ void ] } Method [ <internal:event> public method setMaxHeadersSize ] { - Parameters [1] { - Parameter #0 [ <required> $max_size ] + Parameter #0 [ <required> int $max_size ] } + - Return [ void ] } Method [ <internal:event> public method setMaxBodySize ] { - Parameters [1] { - Parameter #0 [ <required> $max_size ] + Parameter #0 [ <required> int $max_size ] } + - Return [ void ] } Method [ <internal:event> public method setRetries ] { - Parameters [1] { - Parameter #0 [ <required> $retries ] + Parameter #0 [ <required> int $retries ] } + - Return [ void ] } Method [ <internal:event> public method makeRequest ] { - Parameters [3] { - Parameter #0 [ <required> $req ] - Parameter #1 [ <required> $type ] - Parameter #2 [ <required> $uri ] + Parameter #0 [ <required> EventHttpRequest $req ] + Parameter #1 [ <required> int $type ] + Parameter #2 [ <required> string $uri ] } + - Return [ ?bool ] } Method [ <internal:event> public method setCloseCallback ] { - Parameters [2] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] + Parameter #0 [ <required> callable $callback ] + Parameter #1 [ <optional> mixed $data = null ] } + - Return [ void ] } } } @@ -1102,7 +1216,7 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [2] { Parameter #0 [ <required> EventBase $base ] - Parameter #1 [ <optional> EventSslContext $ctx ] + Parameter #1 [ <optional> ?EventSslContext $ctx = null ] } } @@ -1110,86 +1224,98 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:event> final public method __wakeup ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method accept ] { - Parameters [1] { - Parameter #0 [ <required> $socket ] + Parameter #0 [ <required> mixed $socket ] } + - Return [ bool ] } Method [ <internal:event> public method bind ] { - Parameters [2] { - Parameter #0 [ <required> $address ] - Parameter #1 [ <required> $port ] + Parameter #0 [ <required> string $address ] + Parameter #1 [ <required> int $port ] } + - Return [ bool ] } Method [ <internal:event> public method setCallback ] { - Parameters [3] { - Parameter #0 [ <required> $path ] - Parameter #1 [ <required> $cb ] - Parameter #2 [ <optional> $arg ] + Parameter #0 [ <required> string $path ] + Parameter #1 [ <required> callable $cb ] + Parameter #2 [ <optional> mixed $arg = null ] } + - Return [ bool ] } Method [ <internal:event> public method setDefaultCallback ] { - Parameters [2] { - Parameter #0 [ <required> $cb ] - Parameter #1 [ <optional> $arg ] + Parameter #0 [ <required> callable $cb ] + Parameter #1 [ <optional> mixed $arg = null ] } + - Return [ void ] } Method [ <internal:event> public method setAllowedMethods ] { - Parameters [1] { - Parameter #0 [ <required> $methods ] + Parameter #0 [ <required> int $methods ] } + - Return [ void ] } Method [ <internal:event> public method setMaxBodySize ] { - Parameters [1] { - Parameter #0 [ <required> $value ] + Parameter #0 [ <required> int $value ] } + - Return [ void ] } Method [ <internal:event> public method setMaxHeadersSize ] { - Parameters [1] { - Parameter #0 [ <required> $value ] + Parameter #0 [ <required> int $value ] } + - Return [ void ] } Method [ <internal:event> public method setTimeout ] { - Parameters [1] { - Parameter #0 [ <required> $value ] + Parameter #0 [ <required> int $value ] } + - Return [ void ] } Method [ <internal:event> public method addServerAlias ] { - Parameters [1] { - Parameter #0 [ <required> $alias ] + Parameter #0 [ <required> string $alias ] } + - Return [ bool ] } Method [ <internal:event> public method removeServerAlias ] { - Parameters [1] { - Parameter #0 [ <required> $alias ] + Parameter #0 [ <required> string $alias ] } + - Return [ bool ] } } } @@ -1223,8 +1349,8 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { Method [ <internal:event, ctor> public method __construct ] { - Parameters [2] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] + Parameter #0 [ <required> callable $callback ] + Parameter #1 [ <optional> mixed $data = null ] } } @@ -1232,159 +1358,183 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:event> final public method __wakeup ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method free ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method getCommand ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:event> public method getHost ] { - Parameters [0] { } + - Return [ string ] } Method [ <internal:event> public method getUri ] { - Parameters [0] { } + - Return [ string ] } Method [ <internal:event> public method getResponseCode ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:event> public method getInputHeaders ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:event> public method getOutputHeaders ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:event> public method getInputBuffer ] { - Parameters [0] { } + - Return [ EventBuffer ] } Method [ <internal:event> public method getOutputBuffer ] { - Parameters [0] { } + - Return [ EventBuffer ] + } + + Method [ <internal:event> public method getBufferEvent ] { + + - Parameters [0] { + } + - Return [ ?EventBufferEvent ] + } + + Method [ <internal:event> public method getConnection ] { + + - Parameters [0] { + } + - Return [ ?EventHttpConnection ] + } + + Method [ <internal:event> public method closeConnection ] { + + - Parameters [0] { + } + - Return [ void ] } Method [ <internal:event> public method sendError ] { - Parameters [2] { - Parameter #0 [ <required> $error ] - Parameter #1 [ <optional> $reason ] + Parameter #0 [ <required> int $error ] + Parameter #1 [ <optional> ?string $reason = null ] } + - Return [ void ] } Method [ <internal:event> public method sendReply ] { - Parameters [3] { - Parameter #0 [ <required> $code ] - Parameter #1 [ <required> $reason ] - Parameter #2 [ <optional> $buf ] + Parameter #0 [ <required> int $code ] + Parameter #1 [ <required> string $reason ] + Parameter #2 [ <optional> ?EventBuffer $buf = null ] } + - Return [ void ] } Method [ <internal:event> public method sendReplyChunk ] { - Parameters [1] { - Parameter #0 [ <required> $buf ] + Parameter #0 [ <required> EventBuffer $buf ] } + - Return [ void ] } Method [ <internal:event> public method sendReplyEnd ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method sendReplyStart ] { - Parameters [2] { - Parameter #0 [ <required> $code ] - Parameter #1 [ <required> $reason ] + Parameter #0 [ <required> int $code ] + Parameter #1 [ <required> string $reason ] } + - Return [ void ] } Method [ <internal:event> public method cancel ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method addHeader ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] - Parameter #2 [ <required> $type ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $value ] + Parameter #2 [ <required> int $type ] } + - Return [ bool ] } Method [ <internal:event> public method clearHeaders ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:event> public method removeHeader ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $type ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $type ] } + - Return [ bool ] } Method [ <internal:event> public method findHeader ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $type ] - } - } - - Method [ <internal:event> public method getBufferEvent ] { - - - Parameters [0] { - } - } - - Method [ <internal:event> public method getConnection ] { - - - Parameters [0] { - } - } - - Method [ <internal:event> public method closeConnection ] { - - - Parameters [0] { + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $type ] } + - Return [ ?string ] } } } @@ -1418,7 +1568,7 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { Constant [ public int SOCK_RAW ] { 3 } Constant [ public int IPPROTO_IP ] { 0 } Constant [ public int IPPROTO_IPV6 ] { 41 } - Constant [ public int LIBEVENT_VERSION_NUMBER ] { 33622016 } + Constant [ public int LIBEVENT_VERSION_NUMBER ] { 33623040 } } - Static properties [0] { @@ -1428,54 +1578,61 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { Method [ <internal:event> static public method getLastSocketErrno ] { - Parameters [1] { - Parameter #0 [ <optional> $socket ] + Parameter #0 [ <optional> ?Socket $socket = null ] } + - Return [ int|false ] } Method [ <internal:event> static public method getLastSocketError ] { - Parameters [1] { - Parameter #0 [ <optional> $socket ] + Parameter #0 [ <optional> mixed $socket = null ] } + - Return [ string|false ] } Method [ <internal:event> static public method sslRandPoll ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:event> static public method getSocketName ] { - Parameters [3] { - Parameter #0 [ <required> $socket ] - Parameter #1 [ <required> &$address ] - Parameter #2 [ <optional> &$port ] + Parameter #0 [ <required> mixed $socket ] + Parameter #1 [ <required> mixed &$address ] + Parameter #2 [ <optional> mixed &$port = null ] } + - Return [ bool ] } Method [ <internal:event> static public method getSocketFd ] { - Parameters [1] { - Parameter #0 [ <required> $socket ] + Parameter #0 [ <required> mixed $socket ] } + - Return [ int ] } Method [ <internal:event> static public method setSocketOption ] { - Parameters [4] { - Parameter #0 [ <required> $socket ] - Parameter #1 [ <required> $level ] - Parameter #2 [ <required> $optname ] - Parameter #3 [ <required> $optval ] + Parameter #0 [ <required> mixed $socket ] + Parameter #1 [ <required> int $level ] + Parameter #2 [ <required> int $optname ] + Parameter #3 [ <required> mixed $optval ] } + - Return [ bool ] } Method [ <internal:event> static public method createSocket ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ Socket|false ] } } @@ -1517,8 +1674,8 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { Constant [ public int OPT_CIPHER_SERVER_PREFERENCE ] { 15 } Constant [ public int OPT_REQUIRE_CLIENT_CERT ] { 16 } Constant [ public int OPT_VERIFY_CLIENT_ONCE ] { 17 } - Constant [ public string OPENSSL_VERSION_TEXT ] { OpenSSL 1.1.1l FIPS 24 Aug 2021 } - Constant [ public int OPENSSL_VERSION_NUMBER ] { 269488335 } + Constant [ public string OPENSSL_VERSION_TEXT ] { OpenSSL 1.1.1n FIPS 15 Mar 2022 } + Constant [ public int OPENSSL_VERSION_NUMBER ] { 269488367 } Constant [ public int SSL3_VERSION ] { 768 } Constant [ public int TLS1_VERSION ] { 769 } Constant [ public int TLS1_1_VERSION ] { 770 } @@ -1534,36 +1691,38 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { } - Properties [2] { - Property [ <default> public $local_cert ] - Property [ <default> public $local_pk ] + Property [ public $local_cert = NULL ] + Property [ public $local_pk = NULL ] } - Methods [3] { Method [ <internal:event, ctor> public method __construct ] { - Parameters [2] { - Parameter #0 [ <required> $method ] - Parameter #1 [ <required> $options ] + Parameter #0 [ <required> int $method ] + Parameter #1 [ <required> array $options ] } } Method [ <internal:event> public method setMinProtoVersion ] { - Parameters [1] { - Parameter #0 [ <required> $proto ] + Parameter #0 [ <required> int $proto ] } + - Return [ bool ] } Method [ <internal:event> public method setMaxProtoVersion ] { - Parameters [1] { - Parameter #0 [ <required> $proto ] + Parameter #0 [ <required> int $proto ] } + - Return [ bool ] } } } - Class [ <internal:event> class EventException extends RuntimeException implements Throwable ] { + Class [ <internal:event> class EventException extends RuntimeException implements Stringable, Throwable ] { - Constants [0] { } @@ -1575,48 +1734,82 @@ Extension [ <persistent> extension #124 event version 3.0.6 ] { } - Properties [5] { - Property [ <default> protected $message ] - Property [ <default> protected $code ] - Property [ <default> protected $file ] - Property [ <default> protected $line ] - Property [ <default> public $errorInfo ] + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected $file = NULL ] + Property [ protected $line = NULL ] + Property [ public $errorInfo = NULL ] } - Methods [10] { Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - Parameters [3] { - Parameter #0 [ <optional> $message ] - Parameter #1 [ <optional> $code ] - Parameter #2 [ <optional> $previous ] + Parameter #0 [ <optional> string $message = "" ] + Parameter #1 [ <optional> int $code = 0 ] + Parameter #2 [ <optional> ?Throwable $previous = null ] } } Method [ <internal:Core, inherits Exception> public method __wakeup ] { + + - Parameters [0] { + } } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { + + - Parameters [0] { + } } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { + Method [ <internal:Core, inherits Exception, prototype Stringable> public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] } } } diff --git a/php-pecl-event.spec b/php-pecl-event.spec index 27d5ac0..4db84e5 100644 --- a/php-pecl-event.spec +++ b/php-pecl-event.spec @@ -3,7 +3,7 @@ # # Fedora spec file for php-pecl-event # -# Copyright (c) 2013-2021 Remi Collet +# Copyright (c) 2013-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -31,8 +31,8 @@ # After 20-sockets.so %global ini_name 40-%{pecl_name}.ini %endif -%global upstream_version 3.0.6 -#global upstream_prever RC3 +%global upstream_version 3.0.7 +#global upstream_prever RC1 #global upstream_postver r1 Summary: Provides interface to libevent library @@ -113,7 +113,7 @@ mv %{pecl_name}-%{upstream_version}%{?upstream_prever}%{?upstream_postver} NTS cd NTS # Sanity check, really often broken DIR=$(%{__php} -r 'echo "php" . PHP_MAJOR_VERSION;') -sed -e '/PHP_EVENT_VERSION/s/2.4.2/2.4.3/' -i $DIR/php_event.h +#sed -e '/PHP_EVENT_VERSION/s/2.4.2/2.4.3/' -i $DIR/php_event.h extver=$(sed -n '/#define PHP_EVENT_VERSION/{s/.* "//;s/".*$//;p}' $DIR/php_event.h) if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}%{?upstream_postver}"; then @@ -141,6 +141,7 @@ cd NTS %{_bindir}/phpize %configure \ --with-event-libevent-dir=%{_event_prefix} \ + --with-openssl-dir=%{_root_prefix} \ --with-libdir=%{_lib} \ --with-event-core \ --with-event-extra \ @@ -153,6 +154,7 @@ cd ../ZTS %{_bindir}/zts-phpize %configure \ --with-event-libevent-dir=%{_event_prefix} \ + --with-openssl-dir=%{_root_prefix} \ --with-libdir=%{_lib} \ --with-event-core \ --with-event-extra \ @@ -265,6 +267,12 @@ fi %changelog +* Mon May 30 2022 Remi Collet <remi@remirepo.net> - 3.0.7-1 +- update to 3.0.7 + +* Tue Oct 19 2021 Remi Collet <remi@remirepo.net> - 3.0.7~RC1-1 +- update to 3.0.7RC1 + * Thu Sep 23 2021 Remi Collet <remi@remirepo.net> - 3.0.6-1 - update to 3.0.6 |