diff options
-rw-r--r-- | PHPINFO | 2 | ||||
-rw-r--r-- | REFLECTION | 768 | ||||
-rw-r--r-- | php-pecl-ev.spec | 144 |
3 files changed, 508 insertions, 406 deletions
@@ -3,4 +3,4 @@ ev Ev support => enabled Debug support => disabled -Version => 1.1.6RC1 +Version => 1.2.0 @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { +Extension [ <persistent> extension #72 ev version 1.2.0 ] { - Dependencies { Dependency [ sockets (Optional) ] @@ -52,107 +52,124 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev> final static public method recommendedBackends ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev> final static public method embeddableBackends ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev> final static public method sleep ] { - Parameters [1] { - Parameter #0 [ <required> $seconds ] + Parameter #0 [ <required> float $seconds ] } + - Return [ void ] } Method [ <internal:ev> final static public method time ] { - Parameters [0] { } + - Return [ float ] } Method [ <internal:ev> final static public method feedSignal ] { - Parameters [1] { - Parameter #0 [ <required> $signum ] + Parameter #0 [ <required> int $signum ] } + - Return [ void ] } Method [ <internal:ev> final static public method feedSignalEvent ] { - Parameters [1] { - Parameter #0 [ <required> $signum ] + Parameter #0 [ <required> int $signum ] } + - Return [ void ] } Method [ <internal:ev> final static public method run ] { - Parameters [1] { - Parameter #0 [ <optional> $flags ] + Parameter #0 [ <optional> int $flags = 0 ] } + - Return [ void ] } Method [ <internal:ev> final static public method now ] { - Parameters [0] { } + - Return [ float ] } Method [ <internal:ev> final static public method stop ] { - Parameters [1] { - Parameter #0 [ <optional> $how ] + Parameter #0 [ <optional> int $how = 0 ] } + - Return [ void ] } Method [ <internal:ev> final static public method iteration ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev> final static public method depth ] { - Parameters [0] { } + - Return [ int ] } - Method [ <internal:ev> final static public method verify ] { + Method [ <internal:ev> final static public method backend ] { - Parameters [0] { } + - Return [ int ] } - Method [ <internal:ev> final static public method backend ] { + Method [ <internal:ev> final static public method nowUpdate ] { - Parameters [0] { } + - Return [ void ] } - Method [ <internal:ev> final static public method nowUpdate ] { + Method [ <internal:ev> final static public method suspend ] { - Parameters [0] { } + - Return [ void ] } - Method [ <internal:ev> final static public method suspend ] { + Method [ <internal:ev> final static public method resume ] { - Parameters [0] { } + - Return [ void ] } - Method [ <internal:ev> final static public method resume ] { + Method [ <internal:ev> final static public method verify ] { - Parameters [0] { } + - Return [ void ] } } @@ -175,33 +192,34 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { Method [ <internal:ev> static public method defaultLoop ] { - Parameters [4] { - Parameter #0 [ <optional> $flags ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $io_interval ] - Parameter #3 [ <optional> $timeout_interval ] + Parameter #0 [ <optional> int $flags = Ev::FLAG_AUTO ] + Parameter #1 [ <optional> mixed $data = null ] + Parameter #2 [ <optional> float $io_interval = 0.0 ] + Parameter #3 [ <optional> float $timeout_interval = 0.0 ] } + - Return [ EvLoop ] } } - Properties [8] { - Property [ <default> public $data ] - Property [ <default> public $backend ] - Property [ <default> public $is_default_loop ] - Property [ <default> public $iteration ] - Property [ <default> public $pending ] - Property [ <default> public $io_interval ] - Property [ <default> public $timeout_interval ] - Property [ <default> public $depth ] + Property [ public $data = NULL ] + Property [ public $backend = NULL ] + Property [ public $is_default_loop = NULL ] + Property [ public $iteration = NULL ] + Property [ public $pending = NULL ] + Property [ public $io_interval = NULL ] + Property [ public $timeout_interval = NULL ] + Property [ public $depth = NULL ] } - Methods [22] { Method [ <internal:ev, ctor> public method __construct ] { - Parameters [4] { - Parameter #0 [ <optional> $flags ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $io_interval ] - Parameter #3 [ <optional> $timeout_interval ] + Parameter #0 [ <optional> int $flags = Ev::FLAG_AUTO ] + Parameter #1 [ <optional> mixed $data = null ] + Parameter #2 [ <optional> float $io_interval = 0.0 ] + Parameter #3 [ <optional> float $timeout_interval = 0.0 ] } } @@ -209,173 +227,182 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev> public method verify ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev> public method invokePending ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev> public method nowUpdate ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev> public method suspend ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev> public method resume ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev> public method backend ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev> public method now ] { - Parameters [0] { } + - Return [ float ] } Method [ <internal:ev> public method run ] { - Parameters [1] { - Parameter #0 [ <optional> $flags ] + Parameter #0 [ <optional> int $flags = 0 ] } + - Return [ void ] } Method [ <internal:ev> public method stop ] { - Parameters [1] { - Parameter #0 [ <optional> $how ] + Parameter #0 [ <optional> int $how = 0 ] } + - Return [ void ] } Method [ <internal:ev> final public method io ] { - Parameters [5] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $events ] - Parameter #2 [ <required> $callback ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $priority ] + Parameter #0 [ <required> mixed $fd ] + Parameter #1 [ <required> int $events ] + Parameter #2 [ <required> mixed $callback ] + Parameter #3 [ <optional> mixed $data = null ] + Parameter #4 [ <optional> int $priority = 0 ] } + - Return [ EvIo ] } Method [ <internal:ev> final public method timer ] { - Parameters [5] { - Parameter #0 [ <required> $after ] - Parameter #1 [ <required> $repeat ] - Parameter #2 [ <required> $callback ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $priority ] + Parameter #0 [ <required> float $after ] + Parameter #1 [ <required> float $repeat ] + Parameter #2 [ <required> mixed $callback ] + Parameter #3 [ <optional> mixed $data = null ] + Parameter #4 [ <optional> int $priority = 0 ] } + - Return [ EvTimer ] } Method [ <internal:ev> final public method periodic ] { - - Parameters [5] { - Parameter #0 [ <required> $offset ] - Parameter #1 [ <required> $interval ] - Parameter #2 [ <required> $callback ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $priority ] + - Parameters [6] { + Parameter #0 [ <required> float $offset ] + Parameter #1 [ <required> float $interval ] + Parameter #2 [ <required> mixed $reschedule_cb ] + Parameter #3 [ <required> mixed $callback ] + Parameter #4 [ <optional> mixed $data = null ] + Parameter #5 [ <optional> int $priority = 0 ] } + - Return [ EvPeriodic ] } Method [ <internal:ev> final public method signal ] { - Parameters [4] { - Parameter #0 [ <required> $signum ] - Parameter #1 [ <required> $callback ] - Parameter #2 [ <optional> $data ] - Parameter #3 [ <optional> $priority ] + Parameter #0 [ <required> int $signum ] + Parameter #1 [ <required> mixed $callback ] + Parameter #2 [ <optional> mixed $data = null ] + Parameter #3 [ <optional> int $priority = 0 ] } + - Return [ EvSignal ] } Method [ <internal:ev> final public method child ] { - Parameters [5] { - Parameter #0 [ <required> $pid ] - Parameter #1 [ <required> $trace ] - Parameter #2 [ <required> $callback ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $priority ] + Parameter #0 [ <required> int $pid ] + Parameter #1 [ <required> bool $trace ] + Parameter #2 [ <required> mixed $callback ] + Parameter #3 [ <optional> mixed $data = null ] + Parameter #4 [ <optional> int $priority = 0 ] } + - Return [ EvChild ] } Method [ <internal:ev> final public method stat ] { - Parameters [5] { - Parameter #0 [ <required> $path ] - Parameter #1 [ <required> $interval ] - Parameter #2 [ <required> $callback ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $priority ] + Parameter #0 [ <required> string $path ] + Parameter #1 [ <required> float $interval ] + Parameter #2 [ <required> mixed $callback ] + Parameter #3 [ <optional> mixed $data = null ] + Parameter #4 [ <optional> int $priority = 0 ] } + - Return [ EvStat ] } Method [ <internal:ev> final public method idle ] { - Parameters [3] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $priority ] + Parameter #0 [ <required> mixed $callback ] + Parameter #1 [ <optional> mixed $data = null ] + Parameter #2 [ <optional> int $priority = 0 ] } + - Return [ EvIdle ] } Method [ <internal:ev> final public method check ] { - - Parameters [3] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $priority ] + - Parameters [0] { } + - Return [ EvCheck ] } Method [ <internal:ev> final public method prepare ] { - - Parameters [3] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $priority ] + - Parameters [0] { } + - Return [ EvPrepare ] } Method [ <internal:ev> final public method embed ] { - - Parameters [4] { - Parameter #0 [ <required> $other ] - Parameter #1 [ <optional> $callback ] - Parameter #2 [ <optional> $data ] - Parameter #3 [ <optional> $priority ] + - Parameters [0] { } + - Return [ EvEmbed ] } Method [ <internal:ev> final public method fork ] { - - Parameters [3] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $priority ] + - Parameters [0] { } + - Return [ EvFork ] } } } @@ -392,66 +419,71 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { } - Properties [4] { - Property [ <default> public $is_active ] - Property [ <default> public $data ] - Property [ <default> public $is_pending ] - Property [ <default> public $priority ] + Property [ public $is_active = NULL ] + Property [ public $data = NULL ] + Property [ public $is_pending = NULL ] + Property [ public $priority = NULL ] } - - Methods [9] { - Method [ <internal:ev, ctor> abstract public method __construct ] { - } - + - Methods [8] { Method [ <internal:ev> public method start ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev> public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev> public method clear ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev> public method invoke ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev> public method feed ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev> public method getLoop ] { - Parameters [0] { } + - Return [ ?EvLoop ] } Method [ <internal:ev> public method keepalive ] { - Parameters [1] { - Parameter #0 [ <optional> $value ] + Parameter #0 [ <optional> bool $value = true ] } + - Return [ bool ] } Method [ <internal:ev> public method setCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> mixed $callback ] } + - Return [ void ] } } } @@ -468,94 +500,104 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { Method [ <internal:ev> final static public method createStopped ] { - Parameters [5] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $events ] - Parameter #2 [ <required> $callback ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $priority ] + Parameter #0 [ <required> mixed $fd ] + Parameter #1 [ <required> int $events ] + Parameter #2 [ <required> mixed $callback ] + Parameter #3 [ <optional> mixed $data = null ] + Parameter #4 [ <optional> int $priority = 0 ] } + - Return [ EvIo ] } } - Properties [6] { - Property [ <default> public $is_active ] - Property [ <default> public $data ] - Property [ <default> public $is_pending ] - Property [ <default> public $priority ] - Property [ <default> public $fd ] - Property [ <default> public $events ] + Property [ public $is_active = NULL ] + Property [ public $data = NULL ] + Property [ public $is_pending = NULL ] + Property [ public $priority = NULL ] + Property [ public $fd = NULL ] + Property [ public $events = NULL ] } - Methods [10] { - Method [ <internal:ev, overwrites EvWatcher, prototype EvWatcher, ctor> public method __construct ] { + Method [ <internal:ev, ctor> public method __construct ] { - Parameters [5] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $events ] - Parameter #2 [ <required> $callback ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $priority ] + Parameter #0 [ <required> mixed $fd ] + Parameter #1 [ <required> int $events ] + Parameter #2 [ <required> mixed $callback ] + Parameter #3 [ <optional> mixed $data = null ] + Parameter #4 [ <optional> int $priority = 0 ] } } Method [ <internal:ev> public method set ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $events ] + Parameter #0 [ <required> mixed $fd ] + Parameter #1 [ <required> int $events ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method start ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method clear ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev, inherits EvWatcher> public method invoke ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method feed ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method getLoop ] { - Parameters [0] { } + - Return [ ?EvLoop ] } Method [ <internal:ev, inherits EvWatcher> public method keepalive ] { - Parameters [1] { - Parameter #0 [ <optional> $value ] + Parameter #0 [ <optional> bool $value = true ] } + - Return [ bool ] } Method [ <internal:ev, inherits EvWatcher> public method setCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> mixed $callback ] } + - Return [ void ] } } } @@ -572,100 +614,111 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { Method [ <internal:ev> final static public method createStopped ] { - Parameters [5] { - Parameter #0 [ <required> $after ] - Parameter #1 [ <required> $repeat ] - Parameter #2 [ <required> $callback ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $priority ] + Parameter #0 [ <required> float $after ] + Parameter #1 [ <required> float $repeat ] + Parameter #2 [ <required> mixed $callback ] + Parameter #3 [ <optional> mixed $data = null ] + Parameter #4 [ <optional> int $priority = 0 ] } + - Return [ EvTimer ] } } - Properties [6] { - Property [ <default> public $is_active ] - Property [ <default> public $data ] - Property [ <default> public $is_pending ] - Property [ <default> public $priority ] - Property [ <default> public $repeat ] - Property [ <default> public $remaining ] + Property [ public $is_active = NULL ] + Property [ public $data = NULL ] + Property [ public $is_pending = NULL ] + Property [ public $priority = NULL ] + Property [ public $repeat = NULL ] + Property [ public $remaining = NULL ] } - Methods [11] { - Method [ <internal:ev, overwrites EvWatcher, prototype EvWatcher, ctor> public method __construct ] { + Method [ <internal:ev, ctor> public method __construct ] { - Parameters [5] { - Parameter #0 [ <required> $after ] - Parameter #1 [ <required> $repeat ] - Parameter #2 [ <required> $callback ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $priority ] + Parameter #0 [ <required> float $after ] + Parameter #1 [ <required> float $repeat ] + Parameter #2 [ <required> mixed $callback ] + Parameter #3 [ <optional> mixed $data = null ] + Parameter #4 [ <optional> int $priority = 0 ] } } Method [ <internal:ev> public method set ] { - Parameters [2] { - Parameter #0 [ <required> $after ] - Parameter #1 [ <required> $repeat ] + Parameter #0 [ <required> float $after ] + Parameter #1 [ <required> float $repeat ] } + - Return [ void ] } Method [ <internal:ev> public method again ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method start ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method clear ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev, inherits EvWatcher> public method invoke ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method feed ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method getLoop ] { - Parameters [0] { } + - Return [ ?EvLoop ] } Method [ <internal:ev, inherits EvWatcher> public method keepalive ] { - Parameters [1] { - Parameter #0 [ <optional> $value ] + Parameter #0 [ <optional> bool $value = true ] } + - Return [ bool ] } Method [ <internal:ev, inherits EvWatcher> public method setCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> mixed $callback ] } + - Return [ void ] } } } @@ -682,108 +735,121 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { Method [ <internal:ev> final static public method createStopped ] { - Parameters [6] { - Parameter #0 [ <required> $offset ] - Parameter #1 [ <required> $interval ] - Parameter #2 [ <required> $reschedule_cb ] - Parameter #3 [ <required> $callback ] - Parameter #4 [ <optional> $data ] - Parameter #5 [ <optional> $priority ] + Parameter #0 [ <required> float $offset ] + Parameter #1 [ <required> float $interval ] + Parameter #2 [ <required> mixed $reschedule_cb ] + Parameter #3 [ <required> mixed $callback ] + Parameter #4 [ <optional> mixed $data = null ] + Parameter #5 [ <optional> int $priority = 0 ] } + - Return [ EvPeriodic ] } } - Properties [6] { - Property [ <default> public $is_active ] - Property [ <default> public $data ] - Property [ <default> public $is_pending ] - Property [ <default> public $priority ] - Property [ <default> public $offset ] - Property [ <default> public $interval ] + Property [ public $is_active = NULL ] + Property [ public $data = NULL ] + Property [ public $is_pending = NULL ] + Property [ public $priority = NULL ] + Property [ public $offset = NULL ] + Property [ public $interval = NULL ] } - Methods [12] { - Method [ <internal:ev, overwrites EvWatcher, prototype EvWatcher, ctor> public method __construct ] { + Method [ <internal:ev, ctor> public method __construct ] { - Parameters [6] { - Parameter #0 [ <required> $offset ] - Parameter #1 [ <required> $interval ] - Parameter #2 [ <required> $reschedule_cb ] - Parameter #3 [ <required> $callback ] - Parameter #4 [ <optional> $data ] - Parameter #5 [ <optional> $priority ] + Parameter #0 [ <required> float $offset ] + Parameter #1 [ <required> float $interval ] + Parameter #2 [ <required> mixed $reschedule_cb ] + Parameter #3 [ <required> mixed $callback ] + Parameter #4 [ <optional> mixed $data = null ] + Parameter #5 [ <optional> int $priority = 0 ] } } Method [ <internal:ev> public method set ] { - - Parameters [2] { - Parameter #0 [ <required> $offset ] - Parameter #1 [ <required> $interval ] + - Parameters [3] { + Parameter #0 [ <required> float $offset ] + Parameter #1 [ <required> float $interval ] + Parameter #2 [ <optional> mixed $reschedule_cb = null ] } + - Return [ void ] } Method [ <internal:ev> public method again ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev> public method at ] { - Parameters [0] { } + - Return [ float ] } Method [ <internal:ev, inherits EvWatcher> public method start ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method clear ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev, inherits EvWatcher> public method invoke ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method feed ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method getLoop ] { - Parameters [0] { } + - Return [ ?EvLoop ] } Method [ <internal:ev, inherits EvWatcher> public method keepalive ] { - Parameters [1] { - Parameter #0 [ <optional> $value ] + Parameter #0 [ <optional> bool $value = true ] } + - Return [ bool ] } Method [ <internal:ev, inherits EvWatcher> public method setCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> mixed $callback ] } + - Return [ void ] } } } @@ -800,90 +866,100 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { Method [ <internal:ev> final static public method createStopped ] { - Parameters [4] { - Parameter #0 [ <required> $signum ] - Parameter #1 [ <required> $callback ] - Parameter #2 [ <optional> $data ] - Parameter #3 [ <optional> $priority ] + Parameter #0 [ <required> int $signum ] + Parameter #1 [ <required> mixed $callback ] + Parameter #2 [ <optional> mixed $data = null ] + Parameter #3 [ <optional> int $priority = 0 ] } + - Return [ EvSignal ] } } - Properties [5] { - Property [ <default> public $is_active ] - Property [ <default> public $data ] - Property [ <default> public $is_pending ] - Property [ <default> public $priority ] - Property [ <default> public $signum ] + Property [ public $is_active = NULL ] + Property [ public $data = NULL ] + Property [ public $is_pending = NULL ] + Property [ public $priority = NULL ] + Property [ public $signum = NULL ] } - Methods [10] { - Method [ <internal:ev, overwrites EvWatcher, prototype EvWatcher, ctor> public method __construct ] { + Method [ <internal:ev, ctor> public method __construct ] { - Parameters [4] { - Parameter #0 [ <required> $signum ] - Parameter #1 [ <required> $callback ] - Parameter #2 [ <optional> $data ] - Parameter #3 [ <optional> $priority ] + Parameter #0 [ <required> int $signum ] + Parameter #1 [ <required> mixed $callback ] + Parameter #2 [ <optional> mixed $data = null ] + Parameter #3 [ <optional> int $priority = 0 ] } } Method [ <internal:ev> public method set ] { - Parameters [1] { - Parameter #0 [ <required> $signum ] + Parameter #0 [ <required> int $signum ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method start ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method clear ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev, inherits EvWatcher> public method invoke ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method feed ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method getLoop ] { - Parameters [0] { } + - Return [ ?EvLoop ] } Method [ <internal:ev, inherits EvWatcher> public method keepalive ] { - Parameters [1] { - Parameter #0 [ <optional> $value ] + Parameter #0 [ <optional> bool $value = true ] } + - Return [ bool ] } Method [ <internal:ev, inherits EvWatcher> public method setCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> mixed $callback ] } + - Return [ void ] } } } @@ -900,95 +976,105 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { Method [ <internal:ev> final static public method createStopped ] { - Parameters [5] { - Parameter #0 [ <required> $pid ] - Parameter #1 [ <required> $trace ] - Parameter #2 [ <required> $callback ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $priority ] + Parameter #0 [ <required> int $pid ] + Parameter #1 [ <required> bool $trace ] + Parameter #2 [ <required> mixed $callback ] + Parameter #3 [ <optional> mixed $data = null ] + Parameter #4 [ <optional> int $priority = 0 ] } + - Return [ EvChild ] } } - Properties [7] { - Property [ <default> public $is_active ] - Property [ <default> public $data ] - Property [ <default> public $is_pending ] - Property [ <default> public $priority ] - Property [ <default> public $pid ] - Property [ <default> public $rpid ] - Property [ <default> public $rstatus ] + Property [ public $is_active = NULL ] + Property [ public $data = NULL ] + Property [ public $is_pending = NULL ] + Property [ public $priority = NULL ] + Property [ public $pid = NULL ] + Property [ public $rpid = NULL ] + Property [ public $rstatus = NULL ] } - Methods [10] { - Method [ <internal:ev, overwrites EvWatcher, prototype EvWatcher, ctor> public method __construct ] { + Method [ <internal:ev, ctor> public method __construct ] { - Parameters [5] { - Parameter #0 [ <required> $pid ] - Parameter #1 [ <required> $trace ] - Parameter #2 [ <required> $callback ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $priority ] + Parameter #0 [ <required> int $pid ] + Parameter #1 [ <required> bool $trace ] + Parameter #2 [ <required> mixed $callback ] + Parameter #3 [ <optional> mixed $data = null ] + Parameter #4 [ <optional> int $priority = 0 ] } } Method [ <internal:ev> public method set ] { - Parameters [2] { - Parameter #0 [ <required> $pid ] - Parameter #1 [ <required> $trace ] + Parameter #0 [ <required> int $pid ] + Parameter #1 [ <required> bool $trace ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method start ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method clear ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev, inherits EvWatcher> public method invoke ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method feed ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method getLoop ] { - Parameters [0] { } + - Return [ ?EvLoop ] } Method [ <internal:ev, inherits EvWatcher> public method keepalive ] { - Parameters [1] { - Parameter #0 [ <optional> $value ] + Parameter #0 [ <optional> bool $value = true ] } + - Return [ bool ] } Method [ <internal:ev, inherits EvWatcher> public method setCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> mixed $callback ] } + - Return [ void ] } } } @@ -1005,112 +1091,125 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { Method [ <internal:ev> final static public method createStopped ] { - Parameters [5] { - Parameter #0 [ <required> $path ] - Parameter #1 [ <required> $interval ] - Parameter #2 [ <required> $callback ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $priority ] + Parameter #0 [ <required> string $path ] + Parameter #1 [ <required> float $interval ] + Parameter #2 [ <required> mixed $callback ] + Parameter #3 [ <optional> mixed $data = null ] + Parameter #4 [ <optional> int $priority = 0 ] } + - Return [ EvStat ] } } - Properties [6] { - Property [ <default> public $is_active ] - Property [ <default> public $data ] - Property [ <default> public $is_pending ] - Property [ <default> public $priority ] - Property [ <default> public $path ] - Property [ <default> public $interval ] + Property [ public $is_active = NULL ] + Property [ public $data = NULL ] + Property [ public $is_pending = NULL ] + Property [ public $priority = NULL ] + Property [ public $path = NULL ] + Property [ public $interval = NULL ] } - Methods [13] { - Method [ <internal:ev, overwrites EvWatcher, prototype EvWatcher, ctor> public method __construct ] { + Method [ <internal:ev, ctor> public method __construct ] { - Parameters [5] { - Parameter #0 [ <required> $path ] - Parameter #1 [ <required> $interval ] - Parameter #2 [ <required> $callback ] - Parameter #3 [ <optional> $data ] - Parameter #4 [ <optional> $priority ] + Parameter #0 [ <required> string $path ] + Parameter #1 [ <required> float $interval ] + Parameter #2 [ <required> mixed $callback ] + Parameter #3 [ <optional> mixed $data = null ] + Parameter #4 [ <optional> int $priority = 0 ] } } Method [ <internal:ev> public method set ] { - Parameters [2] { - Parameter #0 [ <required> $path ] - Parameter #1 [ <required> $interval ] + Parameter #0 [ <required> string $path ] + Parameter #1 [ <required> float $interval ] } + - Return [ void ] } Method [ <internal:ev> public method attr ] { - Parameters [0] { } + - Return [ mixed ] } Method [ <internal:ev> public method prev ] { - Parameters [0] { } + - Return [ mixed ] } Method [ <internal:ev> public method stat ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:ev, inherits EvWatcher> public method start ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method clear ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev, inherits EvWatcher> public method invoke ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method feed ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method getLoop ] { - Parameters [0] { } + - Return [ ?EvLoop ] } Method [ <internal:ev, inherits EvWatcher> public method keepalive ] { - Parameters [1] { - Parameter #0 [ <optional> $value ] + Parameter #0 [ <optional> bool $value = true ] } + - Return [ bool ] } Method [ <internal:ev, inherits EvWatcher> public method setCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> mixed $callback ] } + - Return [ void ] } } } @@ -1127,27 +1226,28 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { Method [ <internal:ev> final static public method createStopped ] { - Parameters [3] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $priority ] + Parameter #0 [ <required> mixed $callback ] + Parameter #1 [ <optional> mixed $data = null ] + Parameter #2 [ <optional> int $priority = 0 ] } + - Return [ EvIdle ] } } - Properties [4] { - Property [ <default> public $is_active ] - Property [ <default> public $data ] - Property [ <default> public $is_pending ] - Property [ <default> public $priority ] + Property [ public $is_active = NULL ] + Property [ public $data = NULL ] + Property [ public $is_pending = NULL ] + Property [ public $priority = NULL ] } - Methods [9] { - Method [ <internal:ev, overwrites EvWatcher, prototype EvWatcher, ctor> public method __construct ] { + Method [ <internal:ev, ctor> public method __construct ] { - Parameters [3] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $priority ] + Parameter #0 [ <required> mixed $callback ] + Parameter #1 [ <optional> mixed $data = null ] + Parameter #2 [ <optional> int $priority = 0 ] } } @@ -1155,52 +1255,60 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method clear ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev, inherits EvWatcher> public method invoke ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method feed ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method getLoop ] { - Parameters [0] { } + - Return [ ?EvLoop ] } Method [ <internal:ev, inherits EvWatcher> public method keepalive ] { - Parameters [1] { - Parameter #0 [ <optional> $value ] + Parameter #0 [ <optional> bool $value = true ] } + - Return [ bool ] } Method [ <internal:ev, inherits EvWatcher> public method setCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> mixed $callback ] } + - Return [ void ] } } } @@ -1217,27 +1325,28 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { Method [ <internal:ev> final static public method createStopped ] { - Parameters [3] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $priority ] + Parameter #0 [ <required> mixed $callback ] + Parameter #1 [ <optional> mixed $data = null ] + Parameter #2 [ <optional> int $priority = 0 ] } + - Return [ EvCheck ] } } - Properties [4] { - Property [ <default> public $is_active ] - Property [ <default> public $data ] - Property [ <default> public $is_pending ] - Property [ <default> public $priority ] + Property [ public $is_active = NULL ] + Property [ public $data = NULL ] + Property [ public $is_pending = NULL ] + Property [ public $priority = NULL ] } - Methods [9] { - Method [ <internal:ev, overwrites EvWatcher, prototype EvWatcher, ctor> public method __construct ] { + Method [ <internal:ev, ctor> public method __construct ] { - Parameters [3] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $priority ] + Parameter #0 [ <required> mixed $callback ] + Parameter #1 [ <optional> mixed $data = null ] + Parameter #2 [ <optional> int $priority = 0 ] } } @@ -1245,52 +1354,60 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method clear ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev, inherits EvWatcher> public method invoke ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method feed ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method getLoop ] { - Parameters [0] { } + - Return [ ?EvLoop ] } Method [ <internal:ev, inherits EvWatcher> public method keepalive ] { - Parameters [1] { - Parameter #0 [ <optional> $value ] + Parameter #0 [ <optional> bool $value = true ] } + - Return [ bool ] } Method [ <internal:ev, inherits EvWatcher> public method setCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> mixed $callback ] } + - Return [ void ] } } } @@ -1307,27 +1424,28 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { Method [ <internal:ev> final static public method createStopped ] { - Parameters [3] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $priority ] + Parameter #0 [ <required> mixed $callback ] + Parameter #1 [ <optional> mixed $data = null ] + Parameter #2 [ <optional> int $priority = 0 ] } + - Return [ EvPrepare ] } } - Properties [4] { - Property [ <default> public $is_active ] - Property [ <default> public $data ] - Property [ <default> public $is_pending ] - Property [ <default> public $priority ] + Property [ public $is_active = NULL ] + Property [ public $data = NULL ] + Property [ public $is_pending = NULL ] + Property [ public $priority = NULL ] } - Methods [9] { - Method [ <internal:ev, overwrites EvWatcher, prototype EvWatcher, ctor> public method __construct ] { + Method [ <internal:ev, ctor> public method __construct ] { - Parameters [3] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $priority ] + Parameter #0 [ <required> mixed $callback ] + Parameter #1 [ <optional> mixed $data = null ] + Parameter #2 [ <optional> int $priority = 0 ] } } @@ -1335,52 +1453,60 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method clear ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev, inherits EvWatcher> public method invoke ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method feed ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method getLoop ] { - Parameters [0] { } + - Return [ ?EvLoop ] } Method [ <internal:ev, inherits EvWatcher> public method keepalive ] { - Parameters [1] { - Parameter #0 [ <optional> $value ] + Parameter #0 [ <optional> bool $value = true ] } + - Return [ bool ] } Method [ <internal:ev, inherits EvWatcher> public method setCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> mixed $callback ] } + - Return [ void ] } } } @@ -1397,96 +1523,107 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { Method [ <internal:ev> final static public method createStopped ] { - Parameters [4] { - Parameter #0 [ <required> $other ] - Parameter #1 [ <optional> $callback ] - Parameter #2 [ <optional> $data ] - Parameter #3 [ <optional> $priority ] + Parameter #0 [ <required> EvLoop $other ] + Parameter #1 [ <required> mixed $callback ] + Parameter #2 [ <optional> mixed $data = null ] + Parameter #3 [ <optional> int $priority = 0 ] } + - Return [ EvEmbed ] } } - Properties [5] { - Property [ <default> public $is_active ] - Property [ <default> public $data ] - Property [ <default> public $is_pending ] - Property [ <default> public $priority ] - Property [ <default> public $embed ] + Property [ public $is_active = NULL ] + Property [ public $data = NULL ] + Property [ public $is_pending = NULL ] + Property [ public $priority = NULL ] + Property [ public $embed = NULL ] } - Methods [11] { - Method [ <internal:ev, overwrites EvWatcher, prototype EvWatcher, ctor> public method __construct ] { + Method [ <internal:ev, ctor> public method __construct ] { - Parameters [4] { - Parameter #0 [ <required> $other ] - Parameter #1 [ <optional> $callback ] - Parameter #2 [ <optional> $data ] - Parameter #3 [ <optional> $priority ] + Parameter #0 [ <required> EvLoop $other ] + Parameter #1 [ <required> mixed $callback ] + Parameter #2 [ <optional> mixed $data = null ] + Parameter #3 [ <optional> int $priority = 0 ] } } Method [ <internal:ev> public method set ] { - Parameters [1] { - Parameter #0 [ <required> $other ] + Parameter #0 [ <required> EvLoop $other ] } + - Return [ void ] } Method [ <internal:ev> public method sweep ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method start ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method clear ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev, inherits EvWatcher> public method invoke ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method feed ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method getLoop ] { - Parameters [0] { } + - Return [ ?EvLoop ] } Method [ <internal:ev, inherits EvWatcher> public method keepalive ] { - Parameters [1] { - Parameter #0 [ <optional> $value ] + Parameter #0 [ <optional> bool $value = true ] } + - Return [ bool ] } Method [ <internal:ev, inherits EvWatcher> public method setCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> mixed $callback ] } + - Return [ void ] } } } @@ -1502,28 +1639,31 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { - Static methods [1] { Method [ <internal:ev> final static public method createStopped ] { - - Parameters [3] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $priority ] + - Parameters [4] { + Parameter #0 [ <required> EvLoop $loop ] + Parameter #1 [ <required> mixed $callback ] + Parameter #2 [ <optional> mixed $data = null ] + Parameter #3 [ <optional> int $priority = 0 ] } + - Return [ EvFork ] } } - Properties [4] { - Property [ <default> public $is_active ] - Property [ <default> public $data ] - Property [ <default> public $is_pending ] - Property [ <default> public $priority ] + Property [ public $is_active = NULL ] + Property [ public $data = NULL ] + Property [ public $is_pending = NULL ] + Property [ public $priority = NULL ] } - Methods [9] { - Method [ <internal:ev, overwrites EvWatcher, prototype EvWatcher, ctor> public method __construct ] { + Method [ <internal:ev, ctor> public method __construct ] { - - Parameters [3] { - Parameter #0 [ <required> $callback ] - Parameter #1 [ <optional> $data ] - Parameter #2 [ <optional> $priority ] + - Parameters [4] { + Parameter #0 [ <required> EvLoop $loop ] + Parameter #1 [ <required> mixed $callback ] + Parameter #2 [ <optional> mixed $data = null ] + Parameter #3 [ <optional> int $priority = 0 ] } } @@ -1531,52 +1671,60 @@ Extension [ <persistent> extension #128 ev version 1.1.6RC1 ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method clear ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:ev, inherits EvWatcher> public method invoke ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method feed ] { - Parameters [1] { - Parameter #0 [ <required> $revents ] + Parameter #0 [ <required> int $revents ] } + - Return [ void ] } Method [ <internal:ev, inherits EvWatcher> public method getLoop ] { - Parameters [0] { } + - Return [ ?EvLoop ] } Method [ <internal:ev, inherits EvWatcher> public method keepalive ] { - Parameters [1] { - Parameter #0 [ <optional> $value ] + Parameter #0 [ <optional> bool $value = true ] } + - Return [ bool ] } Method [ <internal:ev, inherits EvWatcher> public method setCallback ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> mixed $callback ] } + - Return [ void ] } } } diff --git a/php-pecl-ev.spec b/php-pecl-ev.spec index aafd485..5c20be5 100644 --- a/php-pecl-ev.spec +++ b/php-pecl-ev.spec @@ -1,7 +1,7 @@ # remirepo spec file for php-pecl-ev # -# Copyright (c) 2013-2021 Remi Collet -# License: CC-BY-SA +# Copyright (c) 2013-2024 Remi Collet +# License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries @@ -9,36 +9,31 @@ # # NOTE: bundled libev # -%if 0%{?scl:1} -%global sub_prefix %{scl_prefix} -%scl_package php-pecl-ev -%endif +%{?scl:%scl_package php-pecl-ev} -%global pecl_name ev -%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} -%if "%{php_version}" < "5.6" -# After sockets -%global ini_name z-%{pecl_name}.ini -%else -# After 20-sockets -%global ini_name 40-%{pecl_name}.ini -%endif +%bcond_without tests -%global upstream_version 1.1.6 -%global upstream_prever RC1 +%global pecl_name ev +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +# After 20-sockets +%global ini_name 40-%{pecl_name}.ini +%global upstream_version 1.2.0 +#global upstream_prever RC1 #global upstream_postver r1 +%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever}%{?upstream_postver} +%global _configure ../%{sources}/configure Summary: Provides interface to libev library -Name: %{?sub_prefix}php-pecl-%{pecl_name} +Name: %{?scl_prefix}php-pecl-%{pecl_name} Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}%{?upstream_postver:+%{upstream_postver}} -Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} -License: PHP +Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +License: PHP-3.01 URL: https://pecl.php.net/package/%{pecl_name} -Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}%{?upstream_postver}.tgz +Source0: https://pecl.php.net/get/%{sources}.tgz BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel +BuildRequires: %{?scl_prefix}php-devel >= 8.0 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-sockets # For tests @@ -47,32 +42,11 @@ BuildRequires: %{?scl_prefix}php-posix Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} Requires: %{?scl_prefix}php-sockets%{?_isa} -%{?_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.3" -Obsoletes: php73-pecl-%{pecl_name} <= %{version} -%endif -%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 @@ -84,25 +58,24 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -mv %{pecl_name}-%{upstream_version}%{?upstream_prever}%{?upstream_postver} NTS # Don't register test files on install sed -e 's/role="test"/role="src"/' \ - %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ + -e '/LICENSE/s/role="doc"/role="src"/' \ -i package.xml -cd NTS +cd %{sources} # Sanity check, really often broken -extver=$(sed -n '/define PHP_EV_VERSION/{s/.* "//;s/".*$//;p}' php%(%{__php} -r 'echo PHP_MAJOR_VERSION;')/php_ev.h) +extver=$(sed -n '/define PHP_EV_VERSION/{s/.* "//;s/".*$//;p}' php_ev.h) if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}%{?upstream_postver}"; then : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}%{?upstream_postver}. exit 1 fi cd .. +mkdir NTS %if %{with_zts} -# Duplicate source tree for NTS / ZTS build -cp -pr NTS ZTS +mkdir ZTS %endif # Create configuration file @@ -115,29 +88,31 @@ EOF %build %{?dtsenable} -cd NTS -%{_bindir}/phpize +cd %{sources} +%{__phpize} +sed -e 's/INSTALL_ROOT/DESTDIR/' -i build/Makefile.global + +cd ../NTS %configure \ --with-libdir=%{_lib} \ - --with-php-config=%{_bindir}/php-config + --with-php-config=%{__phpconfig} -make %{?_smp_mflags} +%make_build %if %{with_zts} cd ../ZTS -%{_bindir}/zts-phpize %configure \ --with-libdir=%{_lib} \ - --with-php-config=%{_bindir}/zts-php-config + --with-php-config=%{__ztsphpconfig} -make %{?_smp_mflags} +%make_build %endif %install %{?dtsenable} -make -C NTS install INSTALL_ROOT=%{buildroot} +%make_install -C NTS # install config file - z-eio.ini to ensure load order (after sockets) install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} @@ -146,78 +121,48 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml %if %{with_zts} -make -C ZTS install INSTALL_ROOT=%{buildroot} +%make_install -C ZTS install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif # Test & Documentation -cd NTS +cd %{sources} for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done -%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 - - %check -# Erratic results -rm ?TS/tests/bug44-uncaught-exception.php5.phpt +cd %{sources} DEPMOD="-n" [ -f %{php_extdir}/sockets.so ] && DEPMOD="$DEPMOD -d extension=sockets.so" [ -f %{php_extdir}/posix.so ] && DEPMOD="$DEPMOD -d extension=posix.so" : Minimal load test for NTS extension -cd NTS -%{_bindir}/php \ +%{__php} \ $DEPMOD \ --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ --modules | grep '^%{pecl_name}$' +%if %{with tests} : Upstream test suite for NTS extension -TEST_PHP_EXECUTABLE=%{_bindir}/php \ TEST_PHP_ARGS="$DEPMOD -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \ -REPORT_EXIT_STATUS=1 \ -%{_bindir}/php -n run-tests.php -q --show-diff - +%{__php} -n run-tests.php -q --show-diff %{?_smp_mflags} +%endif %if %{with_zts} : Minimal load test for ZTS extension -cd ../ZTS %{__ztsphp} \ $DEPMOD \ --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ --modules | grep '^%{pecl_name}$' - -: Upstream test suite for ZTS extension -TEST_PHP_EXECUTABLE=%{__ztsphp} \ -TEST_PHP_ARGS="$DEPMOD -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \ -REPORT_EXIT_STATUS=1 \ -%{__ztsphp} -n run-tests.php -q --show-diff %endif %files -%{?_licensedir:%license NTS/LICENSE} +%license %{sources}/LICENSE %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml @@ -231,6 +176,15 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Tue Sep 24 2024 Remi Collet <remi@remirepo.net> - 1.2.0-2 +- rebuild for 8.4.0RC1 + +* Tue Sep 3 2024 Remi Collet <remi@remirepo.net> - 1.2.0-1 +- update to 1.2.0 + +* Fri Sep 1 2023 Remi Collet <remi@remirepo.net> - 1.1.6~RC1-2 +- build out of sources tree + * Sat Nov 13 2021 Remi Collet <remi@remirepo.net> - 1.1.6~RC1-1 - update to 1.1.6RC1 |