diff options
| -rw-r--r-- | 913.patch | 62 | ||||
| -rw-r--r-- | PHPINFO | 4 | ||||
| -rw-r--r-- | REFLECTION | 802 | ||||
| -rw-r--r-- | php-pecl-pthreads.spec | 54 | 
4 files changed, 587 insertions, 335 deletions
| diff --git a/913.patch b/913.patch new file mode 100644 index 0000000..f118f21 --- /dev/null +++ b/913.patch @@ -0,0 +1,62 @@ +From 951492153f3ee11dd82dfce9416a5f32514514f1 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Thu, 3 Jan 2019 09:00:31 +0100 +Subject: [PATCH] refresh file list + +--- + package.xml | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/package.xml b/package.xml +index 4c7b48e9..3f540e75 100644 +--- a/package.xml ++++ b/package.xml +@@ -133,8 +133,8 @@ + 	<file name="tests/graceful-fatalities.phpt" role="test" /> + 	<file name="tests/hacking-serials.phpt" role="test" /> + 	<file name="tests/immutable-threaded-members.phpt" role="test" /> +-	<file name="tests/included_interface_constant.phpt" role="test" /> + 	<file name="tests/included-files.phpt" role="test" /> ++	<file name="tests/include_interface_constant.phpt" role="test" /> + 	<file name="tests/includeme.inc" role="test" /> + 	<file name="tests/inherit-non-closures.phpt" role="test" /> + 	<file name="tests/inherited-anon-class-outside-context.phpt" role="test" /> +@@ -157,6 +157,7 @@ + 	<file name="tests/nested-non-threaded-object-references.phpt" role="test" /> + 	<file name="tests/new-class-after-thread-creation.phpt" role="test" /> + 	<file name="tests/no-cloning.phpt" role="test" /> ++	<file name="tests/no-inheritance-anon-class.phpt" role="test" /> + 	<file name="tests/norefs.phpt" role="test" /> + 	<file name="tests/normal-reads.phpt" role="test" /> + 	<file name="tests/normalize-members.phpt" role="test" /> +@@ -167,8 +168,8 @@ + 	<file name="tests/pools-default.phpt" role="test" /> + 	<file name="tests/pools.phpt" role="test" /> + 	<file name="tests/private-class-constant-fetching.phpt" role="test" /> +-	<file name="tests/pthreads-inherited-none-class-constant-inherited.phpt" role="test" /> +-	<file name="tests/pthreads-inherited-none-class-constant.phpt" role="test" /> ++	<file name="tests/pthreads-inherit-none-class-constant.phpt" role="test" /> ++	<file name="tests/pthreads-inherit-none-class-constant-inherited.phpt" role="test" /> + 	<file name="tests/recv-overload.phpt" role="test" /> + 	<file name="tests/resource-keeping.phpt" role="test" /> + 	<file name="tests/return-types.phpt" role="test" /> +@@ -216,8 +217,9 @@ + 	<file name="tests/trait-aliases.phpt" role="test" /> + 	<file name="tests/traits-scope.inc" role="test" /> + 	<file name="tests/traits-scope.phpt" role="test" /> +-	<file name="tests/unprepared-entry-static-segfaults.phpt" role="test" /> ++	<file name="tests/unprepared-entry-static-segfault.phpt" role="test" /> + 	<file name="tests/unset-defaults.phpt" role="test" /> ++	<file name="tests/unstack-running.phpt" role="test" /> + 	<file name="tests/verify-overload.phpt" role="test" /> + 	<file name="tests/volatile-arrays.phpt" role="test" /> + 	<file name="tests/volatile-nested.phpt" role="test" /> +@@ -267,8 +269,6 @@ + 	<file name="php_pthreads.c" role="src" /> + 	<file name="php_pthreads.h" role="src" /> + 	<file name="README.md" role="doc" /> +-	<file name=".travis.yml" role="doc" /> +-	<file name="appveyor.xml" role="doc" /> +   </dir> +  </contents> +  <dependencies> @@ -0,0 +1,4 @@ + +pthreads + +Version => 3.2.0 @@ -1,6 +1,6 @@ -Extension [ <persistent> extension #125 pthreads version 2.0.10 ] { +Extension [ <persistent> extension #130 pthreads version 3.2.0 ] { -  - Constants [10] { +  - Constants [9] {      Constant [ integer PTHREADS_INHERIT_ALL ] { 1118481 }      Constant [ integer PTHREADS_INHERIT_NONE ] { 0 }      Constant [ integer PTHREADS_INHERIT_INI ] { 1 } @@ -10,11 +10,10 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {      Constant [ integer PTHREADS_INHERIT_INCLUDES ] { 65536 }      Constant [ integer PTHREADS_INHERIT_COMMENTS ] { 1048576 }      Constant [ integer PTHREADS_ALLOW_HEADERS ] { 268435456 } -    Constant [ integer PTHREADS_ALLOW_GLOBALS ] { 16777216 }    } -  - Classes [8] { -    Class [ <internal:pthreads> <iterateable> class Threaded implements Traversable, Countable ] { +  - Classes [7] { +    Interface [ <internal:pthreads> interface Collectable ] {        - Constants [0] {        } @@ -22,20 +21,35 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {        - Static properties [0] {        } -      - Static methods [2] { -        Method [ <internal:pthreads> static public method extend ] { +      - Static methods [0] { +      } -          - Parameters [1] { -            Parameter #0 [ <required> $class ] +      - Properties [0] { +      } + +      - Methods [1] { +        Method [ <internal:pthreads> abstract public method isGarbage ] { + +          - Parameters [0] {            } +          - Return [ boolean ]          } +      } +    } -        Method [ <internal:pthreads> static public method from ] { +    Class [ <internal:pthreads> <iterateable> class Threaded implements Traversable, Collectable ] { -          - Parameters [3] { -            Parameter #0 [ <required> Closure $run ] -            Parameter #1 [ <optional> Closure or NULL $construct ] -            Parameter #2 [ <optional> $args ] +      - Constants [0] { +      } + +      - Static properties [0] { +      } + +      - Static methods [1] { +        Method [ <internal:pthreads> static public method extend ] { + +          - Parameters [1] { +            Parameter #0 [ <required> $class ]            }          }        } @@ -43,7 +57,7 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {        - Properties [0] {        } -      - Methods [15] { +      - Methods [16] {          Method [ <internal:pthreads> public method run ] {            - Parameters [0] { @@ -53,7 +67,7 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {          Method [ <internal:pthreads> public method wait ] {            - Parameters [1] { -            Parameter #0 [ <optional> $timeout ] +            Parameter #0 [ <optional> integer $timeout ]            }          } @@ -63,13 +77,13 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {            }          } -        Method [ <internal:pthreads> public method isRunning ] { +        Method [ <internal:pthreads> public method notifyOne ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method isWaiting ] { +        Method [ <internal:pthreads> public method isRunning ] {            - Parameters [0] {            } @@ -81,60 +95,67 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {            }          } -        Method [ <internal:pthreads> public method getTerminationInfo ] { +        Method [ <internal:pthreads> public method synchronized ] { -          - Parameters [0] { +          - Parameters [1] { +            Parameter #0 [ <required> $function ]            }          } -        Method [ <internal:pthreads> public method synchronized ] { +        Method [ <internal:pthreads> public method merge ] { -          - Parameters [1] { -            Parameter #0 [ <required> $function ] +          - Parameters [2] { +            Parameter #0 [ <required> $from ] +            Parameter #1 [ <optional> $overwrite ]            }          } -        Method [ <internal:pthreads> public method lock ] { +        Method [ <internal:pthreads> public method shift ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method unlock ] { +        Method [ <internal:pthreads> public method chunk ] { + +          - Parameters [2] { +            Parameter #0 [ <required> $size ] +            Parameter #1 [ <optional> $preserve ] +          } +        } + +        Method [ <internal:pthreads> public method pop ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method merge ] { +        Method [ <internal:pthreads> public method count ] { -          - Parameters [2] { -            Parameter #0 [ <required> $from ] -            Parameter #1 [ <optional> $overwrite ] +          - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method shift ] { +        Method [ <internal:pthreads, prototype Collectable> public method isGarbage ] {            - Parameters [0] {            } +          - Return [ boolean ]          } -        Method [ <internal:pthreads> public method chunk ] { +        Method [ <internal:pthreads> public method addRef ] { -          - Parameters [2] { -            Parameter #0 [ <required> $size ] -            Parameter #1 [ <optional> $preserve ] +          - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method pop ] { +        Method [ <internal:pthreads> public method delRef ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, prototype Countable> public method count ] { +        Method [ <internal:pthreads> public method getRefCount ] {            - Parameters [0] {            } @@ -142,7 +163,7 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {        }      } -    Class [ <internal:pthreads> <iterateable> class Threaded implements Traversable, Countable ] { +    Class [ <internal:pthreads> <iterateable> class Volatile extends Threaded implements Collectable, Traversable ] {        - Constants [0] {        } @@ -150,119 +171,117 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {        - Static properties [0] {        } -      - Static methods [2] { -        Method [ <internal:pthreads> static public method extend ] { +      - Static methods [1] { +        Method [ <internal:pthreads, inherits Threaded> static public method extend ] {            - Parameters [1] {              Parameter #0 [ <required> $class ]            }          } - -        Method [ <internal:pthreads> static public method from ] { - -          - Parameters [3] { -            Parameter #0 [ <required> Closure $run ] -            Parameter #1 [ <optional> Closure or NULL $construct ] -            Parameter #2 [ <optional> $args ] -          } -        }        }        - Properties [0] {        } -      - Methods [15] { -        Method [ <internal:pthreads> public method run ] { +      - Methods [16] { +        Method [ <internal:pthreads, inherits Threaded> public method run ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method wait ] { +        Method [ <internal:pthreads, inherits Threaded> public method wait ] {            - Parameters [1] { -            Parameter #0 [ <optional> $timeout ] +            Parameter #0 [ <optional> integer $timeout ]            }          } -        Method [ <internal:pthreads> public method notify ] { +        Method [ <internal:pthreads, inherits Threaded> public method notify ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method isRunning ] { +        Method [ <internal:pthreads, inherits Threaded> public method notifyOne ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method isWaiting ] { +        Method [ <internal:pthreads, inherits Threaded> public method isRunning ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method isTerminated ] { +        Method [ <internal:pthreads, inherits Threaded> public method isTerminated ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method getTerminationInfo ] { +        Method [ <internal:pthreads, inherits Threaded> public method synchronized ] { -          - Parameters [0] { +          - Parameters [1] { +            Parameter #0 [ <required> $function ]            }          } -        Method [ <internal:pthreads> public method synchronized ] { +        Method [ <internal:pthreads, inherits Threaded> public method merge ] { -          - Parameters [1] { -            Parameter #0 [ <required> $function ] +          - Parameters [2] { +            Parameter #0 [ <required> $from ] +            Parameter #1 [ <optional> $overwrite ]            }          } -        Method [ <internal:pthreads> public method lock ] { +        Method [ <internal:pthreads, inherits Threaded> public method shift ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method unlock ] { +        Method [ <internal:pthreads, inherits Threaded> public method chunk ] { + +          - Parameters [2] { +            Parameter #0 [ <required> $size ] +            Parameter #1 [ <optional> $preserve ] +          } +        } + +        Method [ <internal:pthreads, inherits Threaded> public method pop ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method merge ] { +        Method [ <internal:pthreads, inherits Threaded> public method count ] { -          - Parameters [2] { -            Parameter #0 [ <required> $from ] -            Parameter #1 [ <optional> $overwrite ] +          - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method shift ] { +        Method [ <internal:pthreads, inherits Threaded, prototype Collectable> public method isGarbage ] {            - Parameters [0] {            } +          - Return [ boolean ]          } -        Method [ <internal:pthreads> public method chunk ] { +        Method [ <internal:pthreads, inherits Threaded> public method addRef ] { -          - Parameters [2] { -            Parameter #0 [ <required> $size ] -            Parameter #1 [ <optional> $preserve ] +          - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method pop ] { +        Method [ <internal:pthreads, inherits Threaded> public method delRef ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, prototype Countable> public method count ] { +        Method [ <internal:pthreads, inherits Threaded> public method getRefCount ] {            - Parameters [0] {            } @@ -270,7 +289,7 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {        }      } -    Class [ <internal:pthreads> <iterateable> class Thread extends Threaded implements Countable, Traversable ] { +    Class [ <internal:pthreads> <iterateable> class Thread extends Threaded implements Collectable, Traversable ] {        - Constants [0] {        } @@ -278,7 +297,7 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {        - Static properties [0] {        } -      - Static methods [5] { +      - Static methods [3] {          Method [ <internal:pthreads> static public method getCurrentThreadId ] {            - Parameters [0] { @@ -291,39 +310,22 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {            }          } -        Method [ <internal:pthreads> static public method globally ] { - -          - Parameters [2] { -            Parameter #0 [ <required> $block ] -            Parameter #1 [ <optional> $args ] -          } -        } -          Method [ <internal:pthreads, inherits Threaded> static public method extend ] {            - Parameters [1] {              Parameter #0 [ <required> $class ]            }          } - -        Method [ <internal:pthreads, inherits Threaded> static public method from ] { - -          - Parameters [3] { -            Parameter #0 [ <required> Closure $run ] -            Parameter #1 [ <optional> Closure or NULL $construct ] -            Parameter #2 [ <optional> $args ] -          } -        }        }        - Properties [0] {        } -      - Methods [23] { +      - Methods [22] {          Method [ <internal:pthreads> public method start ] {            - Parameters [1] { -            Parameter #0 [ <optional> $options ] +            Parameter #0 [ <optional> integer $options ]            }          } @@ -333,12 +335,6 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {            }          } -        Method [ <internal:pthreads> public method detach ] { - -          - Parameters [0] { -          } -        } -          Method [ <internal:pthreads> public method isStarted ] {            - Parameters [0] { @@ -363,12 +359,6 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {            }          } -        Method [ <internal:pthreads> public method kill ] { - -          - Parameters [0] { -          } -        } -          Method [ <internal:pthreads, inherits Threaded> public method run ] {            - Parameters [0] { @@ -378,7 +368,7 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {          Method [ <internal:pthreads, inherits Threaded> public method wait ] {            - Parameters [1] { -            Parameter #0 [ <optional> $timeout ] +            Parameter #0 [ <optional> integer $timeout ]            }          } @@ -388,13 +378,13 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method isRunning ] { +        Method [ <internal:pthreads, inherits Threaded> public method notifyOne ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method isWaiting ] { +        Method [ <internal:pthreads, inherits Threaded> public method isRunning ] {            - Parameters [0] {            } @@ -406,60 +396,67 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method getTerminationInfo ] { +        Method [ <internal:pthreads, inherits Threaded> public method synchronized ] { -          - Parameters [0] { +          - Parameters [1] { +            Parameter #0 [ <required> $function ]            }          } -        Method [ <internal:pthreads, inherits Threaded> public method synchronized ] { +        Method [ <internal:pthreads, inherits Threaded> public method merge ] { -          - Parameters [1] { -            Parameter #0 [ <required> $function ] +          - Parameters [2] { +            Parameter #0 [ <required> $from ] +            Parameter #1 [ <optional> $overwrite ]            }          } -        Method [ <internal:pthreads, inherits Threaded> public method lock ] { +        Method [ <internal:pthreads, inherits Threaded> public method shift ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method unlock ] { +        Method [ <internal:pthreads, inherits Threaded> public method chunk ] { + +          - Parameters [2] { +            Parameter #0 [ <required> $size ] +            Parameter #1 [ <optional> $preserve ] +          } +        } + +        Method [ <internal:pthreads, inherits Threaded> public method pop ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method merge ] { +        Method [ <internal:pthreads, inherits Threaded> public method count ] { -          - Parameters [2] { -            Parameter #0 [ <required> $from ] -            Parameter #1 [ <optional> $overwrite ] +          - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method shift ] { +        Method [ <internal:pthreads, inherits Threaded, prototype Collectable> public method isGarbage ] {            - Parameters [0] {            } +          - Return [ boolean ]          } -        Method [ <internal:pthreads, inherits Threaded> public method chunk ] { +        Method [ <internal:pthreads, inherits Threaded> public method addRef ] { -          - Parameters [2] { -            Parameter #0 [ <required> $size ] -            Parameter #1 [ <optional> $preserve ] +          - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method pop ] { +        Method [ <internal:pthreads, inherits Threaded> public method delRef ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded, prototype Countable> public method count ] { +        Method [ <internal:pthreads, inherits Threaded> public method getRefCount ] {            - Parameters [0] {            } @@ -467,7 +464,7 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {        }      } -    Class [ <internal:pthreads> <iterateable> class Worker extends Thread implements Traversable, Countable ] { +    Class [ <internal:pthreads> <iterateable> class Worker extends Thread implements Traversable, Collectable ] {        - Constants [0] {        } @@ -475,7 +472,7 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {        - Static properties [0] {        } -      - Static methods [5] { +      - Static methods [3] {          Method [ <internal:pthreads, inherits Thread> static public method getCurrentThreadId ] {            - Parameters [0] { @@ -488,29 +485,12 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {            }          } -        Method [ <internal:pthreads, inherits Thread> static public method globally ] { - -          - Parameters [2] { -            Parameter #0 [ <required> $block ] -            Parameter #1 [ <optional> $args ] -          } -        } -          Method [ <internal:pthreads, inherits Threaded> static public method extend ] {            - Parameters [1] {              Parameter #0 [ <required> $class ]            }          } - -        Method [ <internal:pthreads, inherits Threaded> static public method from ] { - -          - Parameters [3] { -            Parameter #0 [ <required> Closure $run ] -            Parameter #1 [ <optional> Closure or NULL $construct ] -            Parameter #2 [ <optional> $args ] -          } -        }        }        - Properties [0] { @@ -526,14 +506,13 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {          Method [ <internal:pthreads> public method stack ] {            - Parameters [1] { -            Parameter #0 [ <required> &$work ] +            Parameter #0 [ <required> Threaded $work ]            }          }          Method [ <internal:pthreads> public method unstack ] { -          - Parameters [1] { -            Parameter #0 [ <optional> &$work ] +          - Parameters [0] {            }          } @@ -549,26 +528,28 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {            }          } -        Method [ <internal:pthreads> public method isWorking ] { +        Method [ <internal:pthreads> public method collect ] { -          - Parameters [0] { +          - Parameters [1] { +            Parameter #0 [ <optional> callable $function ]            }          } -        Method [ <internal:pthreads, inherits Thread> public method start ] { +        Method [ <internal:pthreads> public method collector ] {            - Parameters [1] { -            Parameter #0 [ <optional> $options ] +            Parameter #0 [ <required> Collectable $collectable ]            }          } -        Method [ <internal:pthreads, inherits Thread> public method join ] { +        Method [ <internal:pthreads, inherits Thread> public method start ] { -          - Parameters [0] { +          - Parameters [1] { +            Parameter #0 [ <optional> integer $options ]            }          } -        Method [ <internal:pthreads, inherits Thread> public method detach ] { +        Method [ <internal:pthreads, inherits Thread> public method join ] {            - Parameters [0] {            } @@ -598,12 +579,6 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {            }          } -        Method [ <internal:pthreads, inherits Thread> public method kill ] { - -          - Parameters [0] { -          } -        } -          Method [ <internal:pthreads, inherits Threaded> public method run ] {            - Parameters [0] { @@ -613,7 +588,7 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {          Method [ <internal:pthreads, inherits Threaded> public method wait ] {            - Parameters [1] { -            Parameter #0 [ <optional> $timeout ] +            Parameter #0 [ <optional> integer $timeout ]            }          } @@ -623,13 +598,13 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method isRunning ] { +        Method [ <internal:pthreads, inherits Threaded> public method notifyOne ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method isWaiting ] { +        Method [ <internal:pthreads, inherits Threaded> public method isRunning ] {            - Parameters [0] {            } @@ -641,60 +616,67 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method getTerminationInfo ] { +        Method [ <internal:pthreads, inherits Threaded> public method synchronized ] { -          - Parameters [0] { +          - Parameters [1] { +            Parameter #0 [ <required> $function ]            }          } -        Method [ <internal:pthreads, inherits Threaded> public method synchronized ] { +        Method [ <internal:pthreads, inherits Threaded> public method merge ] { -          - Parameters [1] { -            Parameter #0 [ <required> $function ] +          - Parameters [2] { +            Parameter #0 [ <required> $from ] +            Parameter #1 [ <optional> $overwrite ]            }          } -        Method [ <internal:pthreads, inherits Threaded> public method lock ] { +        Method [ <internal:pthreads, inherits Threaded> public method shift ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method unlock ] { +        Method [ <internal:pthreads, inherits Threaded> public method chunk ] { + +          - Parameters [2] { +            Parameter #0 [ <required> $size ] +            Parameter #1 [ <optional> $preserve ] +          } +        } + +        Method [ <internal:pthreads, inherits Threaded> public method pop ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method merge ] { +        Method [ <internal:pthreads, inherits Threaded> public method count ] { -          - Parameters [2] { -            Parameter #0 [ <required> $from ] -            Parameter #1 [ <optional> $overwrite ] +          - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method shift ] { +        Method [ <internal:pthreads, inherits Threaded, prototype Collectable> public method isGarbage ] {            - Parameters [0] {            } +          - Return [ boolean ]          } -        Method [ <internal:pthreads, inherits Threaded> public method chunk ] { +        Method [ <internal:pthreads, inherits Threaded> public method addRef ] { -          - Parameters [2] { -            Parameter #0 [ <required> $size ] -            Parameter #1 [ <optional> $preserve ] +          - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method pop ] { +        Method [ <internal:pthreads, inherits Threaded> public method delRef ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded, prototype Countable> public method count ] { +        Method [ <internal:pthreads, inherits Threaded> public method getRefCount ] {            - Parameters [0] {            } @@ -702,7 +684,7 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {        }      } -    Class [ <internal:pthreads> class Mutex ] { +    Class [ <internal:pthreads> class Pool ] {        - Constants [0] {        } @@ -710,49 +692,57 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {        - Static properties [0] {        } -      - Static methods [5] { -        Method [ <internal:pthreads> final static public method create ] { +      - Static methods [0] { +      } + +      - Properties [5] { +        Property [ <default> protected $size ] +        Property [ <default> protected $class ] +        Property [ <default> protected $workers ] +        Property [ <default> protected $ctor ] +        Property [ <default> protected $last ] +      } + +      - Methods [6] { +        Method [ <internal:pthreads, ctor> public method __construct ] { -          - Parameters [1] { -            Parameter #0 [ <optional> $lock ] +          - Parameters [3] { +            Parameter #0 [ <required> integer $size ] +            Parameter #1 [ <optional> string $class ] +            Parameter #2 [ <optional> array $ctor ]            }          } -        Method [ <internal:pthreads> final static public method lock ] { +        Method [ <internal:pthreads> public method resize ] {            - Parameters [1] { -            Parameter #0 [ <required> $mutex ] +            Parameter #0 [ <required> integer $size ]            }          } -        Method [ <internal:pthreads> final static public method trylock ] { +        Method [ <internal:pthreads> public method submit ] {            - Parameters [1] { -            Parameter #0 [ <required> $mutex ] +            Parameter #0 [ <required> Threaded $task ]            }          } -        Method [ <internal:pthreads> final static public method unlock ] { +        Method [ <internal:pthreads> public method submitTo ] {            - Parameters [2] { -            Parameter #0 [ <required> $mutex ] -            Parameter #1 [ <optional> $destroy ] +            Parameter #0 [ <required> integer $worker ] +            Parameter #1 [ <required> Threaded $task ]            }          } -        Method [ <internal:pthreads> final static public method destroy ] { +        Method [ <internal:pthreads> public method collect ] {            - Parameters [1] { -            Parameter #0 [ <required> $mutex ] +            Parameter #0 [ <optional> callable $collector ]            }          } -      } -      - Properties [0] { -      } - -      - Methods [1] { -        Method [ <internal:pthreads, ctor> final public method __construct ] { +        Method [ <internal:pthreads> public method shutdown ] {            - Parameters [0] {            } @@ -760,166 +750,386 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {        }      } -    Class [ <internal:pthreads> class Cond ] { - -      - Constants [0] { +    Class [ <internal:pthreads> <iterateable> class Socket extends Threaded implements Collectable, Traversable ] { + +      - Constants [146] { +        Constant [ public integer AF_UNIX ] { 1 } +        Constant [ public integer AF_INET ] { 2 } +        Constant [ public integer AF_INET6 ] { 10 } +        Constant [ public integer SOCK_STREAM ] { 1 } +        Constant [ public integer SOCK_DGRAM ] { 2 } +        Constant [ public integer SOCK_RAW ] { 3 } +        Constant [ public integer SOCK_SEQPACKET ] { 5 } +        Constant [ public integer SOCK_RDM ] { 4 } +        Constant [ public integer SO_DEBUG ] { 1 } +        Constant [ public integer SO_REUSEADDR ] { 2 } +        Constant [ public integer SO_REUSEPORT ] { 15 } +        Constant [ public integer SO_KEEPALIVE ] { 9 } +        Constant [ public integer SO_DONTROUTE ] { 5 } +        Constant [ public integer SO_LINGER ] { 13 } +        Constant [ public integer SO_BROADCAST ] { 6 } +        Constant [ public integer SO_OOBINLINE ] { 10 } +        Constant [ public integer SO_SNDBUF ] { 7 } +        Constant [ public integer SO_RCVBUF ] { 8 } +        Constant [ public integer SO_SNDLOWAT ] { 19 } +        Constant [ public integer SO_RCVLOWAT ] { 18 } +        Constant [ public integer SO_SNDTIMEO ] { 21 } +        Constant [ public integer SO_RCVTIMEO ] { 20 } +        Constant [ public integer SO_TYPE ] { 3 } +        Constant [ public integer SO_ERROR ] { 4 } +        Constant [ public integer SO_BINDTODEVICE ] { 25 } +        Constant [ public integer SOMAXCONN ] { 128 } +        Constant [ public integer TCP_NODELAY ] { 1 } +        Constant [ public integer NORMAL_READ ] { 1 } +        Constant [ public integer BINARY_READ ] { 2 } +        Constant [ public integer SOL_SOCKET ] { 1 } +        Constant [ public integer SOL_TCP ] { 6 } +        Constant [ public integer SOL_UDP ] { 17 } +        Constant [ public integer MSG_OOB ] { 1 } +        Constant [ public integer MSG_WAITALL ] { 256 } +        Constant [ public integer MSG_CTRUNC ] { 8 } +        Constant [ public integer MSG_TRUNC ] { 32 } +        Constant [ public integer MSG_PEEK ] { 2 } +        Constant [ public integer MSG_DONTROUTE ] { 4 } +        Constant [ public integer MSG_EOR ] { 128 } +        Constant [ public integer MSG_CONFIRM ] { 2048 } +        Constant [ public integer MSG_ERRQUEUE ] { 8192 } +        Constant [ public integer MSG_NOSIGNAL ] { 16384 } +        Constant [ public integer MSG_MORE ] { 32768 } +        Constant [ public integer MSG_WAITFORONE ] { 65536 } +        Constant [ public integer MSG_CMSG_CLOEXEC ] { 1073741824 } +        Constant [ public integer EPERM ] { 1 } +        Constant [ public integer ENOENT ] { 2 } +        Constant [ public integer EINTR ] { 4 } +        Constant [ public integer EIO ] { 5 } +        Constant [ public integer ENXIO ] { 6 } +        Constant [ public integer E2BIG ] { 7 } +        Constant [ public integer EBADF ] { 9 } +        Constant [ public integer EAGAIN ] { 11 } +        Constant [ public integer ENOMEM ] { 12 } +        Constant [ public integer EACCES ] { 13 } +        Constant [ public integer EFAULT ] { 14 } +        Constant [ public integer ENOTBLK ] { 15 } +        Constant [ public integer EBUSY ] { 16 } +        Constant [ public integer EEXIST ] { 17 } +        Constant [ public integer EXDEV ] { 18 } +        Constant [ public integer ENODEV ] { 19 } +        Constant [ public integer ENOTDIR ] { 20 } +        Constant [ public integer EISDIR ] { 21 } +        Constant [ public integer EINVAL ] { 22 } +        Constant [ public integer ENFILE ] { 23 } +        Constant [ public integer EMFILE ] { 24 } +        Constant [ public integer ENOTTY ] { 25 } +        Constant [ public integer ENOSPC ] { 28 } +        Constant [ public integer ESPIPE ] { 29 } +        Constant [ public integer EROFS ] { 30 } +        Constant [ public integer EMLINK ] { 31 } +        Constant [ public integer EPIPE ] { 32 } +        Constant [ public integer ENAMETOOLONG ] { 36 } +        Constant [ public integer ENOLCK ] { 37 } +        Constant [ public integer ENOSYS ] { 38 } +        Constant [ public integer ENOTEMPTY ] { 39 } +        Constant [ public integer ELOOP ] { 40 } +        Constant [ public integer EWOULDBLOCK ] { 11 } +        Constant [ public integer ENOMSG ] { 42 } +        Constant [ public integer EIDRM ] { 43 } +        Constant [ public integer ECHRNG ] { 44 } +        Constant [ public integer EL2NSYNC ] { 45 } +        Constant [ public integer EL3HLT ] { 46 } +        Constant [ public integer EL3RST ] { 47 } +        Constant [ public integer ELNRNG ] { 48 } +        Constant [ public integer EUNATCH ] { 49 } +        Constant [ public integer ENOCSI ] { 50 } +        Constant [ public integer EL2HLT ] { 51 } +        Constant [ public integer EBADE ] { 52 } +        Constant [ public integer EBADR ] { 53 } +        Constant [ public integer EXFULL ] { 54 } +        Constant [ public integer ENOANO ] { 55 } +        Constant [ public integer EBADRQC ] { 56 } +        Constant [ public integer EBADSLT ] { 57 } +        Constant [ public integer ENOSTR ] { 60 } +        Constant [ public integer ENODATA ] { 61 } +        Constant [ public integer ETIME ] { 62 } +        Constant [ public integer ENOSR ] { 63 } +        Constant [ public integer ENONET ] { 64 } +        Constant [ public integer EREMOTE ] { 66 } +        Constant [ public integer ENOLINK ] { 67 } +        Constant [ public integer EADV ] { 68 } +        Constant [ public integer ESRMNT ] { 69 } +        Constant [ public integer ECOMM ] { 70 } +        Constant [ public integer EPROTO ] { 71 } +        Constant [ public integer EMULTIHOP ] { 72 } +        Constant [ public integer EBADMSG ] { 74 } +        Constant [ public integer ENOTUNIQ ] { 76 } +        Constant [ public integer EBADFD ] { 77 } +        Constant [ public integer EREMCHG ] { 78 } +        Constant [ public integer ERESTART ] { 85 } +        Constant [ public integer ESTRPIPE ] { 86 } +        Constant [ public integer EUSERS ] { 87 } +        Constant [ public integer ENOTSOCK ] { 88 } +        Constant [ public integer EDESTADDRREQ ] { 89 } +        Constant [ public integer EMSGSIZE ] { 90 } +        Constant [ public integer EPROTOTYPE ] { 91 } +        Constant [ public integer ENOPROTOOPT ] { 92 } +        Constant [ public integer EPROTONOSUPPORT ] { 93 } +        Constant [ public integer ESOCKTNOSUPPORT ] { 94 } +        Constant [ public integer EOPNOTSUPP ] { 95 } +        Constant [ public integer EPFNOSUPPORT ] { 96 } +        Constant [ public integer EAFNOSUPPORT ] { 97 } +        Constant [ public integer EADDRINUSE ] { 98 } +        Constant [ public integer EADDRNOTAVAIL ] { 99 } +        Constant [ public integer ENETDOWN ] { 100 } +        Constant [ public integer ENETUNREACH ] { 101 } +        Constant [ public integer ENETRESET ] { 102 } +        Constant [ public integer ECONNABORTED ] { 103 } +        Constant [ public integer ECONNRESET ] { 104 } +        Constant [ public integer ENOBUFS ] { 105 } +        Constant [ public integer EISCONN ] { 106 } +        Constant [ public integer ENOTCONN ] { 107 } +        Constant [ public integer ESHUTDOWN ] { 108 } +        Constant [ public integer ETOOMANYREFS ] { 109 } +        Constant [ public integer ETIMEDOUT ] { 110 } +        Constant [ public integer ECONNREFUSED ] { 111 } +        Constant [ public integer EHOSTDOWN ] { 112 } +        Constant [ public integer EHOSTUNREACH ] { 113 } +        Constant [ public integer EALREADY ] { 114 } +        Constant [ public integer EINPROGRESS ] { 115 } +        Constant [ public integer EISNAM ] { 120 } +        Constant [ public integer EREMOTEIO ] { 121 } +        Constant [ public integer EDQUOT ] { 122 } +        Constant [ public integer ENOMEDIUM ] { 123 } +        Constant [ public integer EMEDIUMTYPE ] { 124 }        }        - Static properties [0] {        } -      - Static methods [5] { -        Method [ <internal:pthreads> final static public method create ] { +      - Static methods [3] { +        Method [ <internal:pthreads> static public method select ] { -          - Parameters [0] { +          - Parameters [6] { +            Parameter #0 [ <required> array or NULL &$read ] +            Parameter #1 [ <required> array or NULL &$write ] +            Parameter #2 [ <required> array or NULL &$except ] +            Parameter #3 [ <required> integer or NULL $sec ] +            Parameter #4 [ <optional> integer $usec ] +            Parameter #5 [ <optional> integer or NULL &$error ] +          } +        } + +        Method [ <internal:pthreads> static public method strerror ] { + +          - Parameters [1] { +            Parameter #0 [ <required> integer $error ]            } +          - Return [ string or NULL ]          } -        Method [ <internal:pthreads> final static public method signal ] { +        Method [ <internal:pthreads, inherits Threaded> static public method extend ] {            - Parameters [1] { -            Parameter #0 [ <required> $condition ] +            Parameter #0 [ <required> $class ] +          } +        } +      } + +      - Properties [0] { +      } + +      - Methods [34] { +        Method [ <internal:pthreads, ctor> public method __construct ] { + +          - Parameters [3] { +            Parameter #0 [ <required> integer $domain ] +            Parameter #1 [ <required> integer $type ] +            Parameter #2 [ <required> integer $protocol ]            }          } -        Method [ <internal:pthreads> final static public method wait ] { +        Method [ <internal:pthreads> public method setOption ] {            - Parameters [3] { -            Parameter #0 [ <required> $condition ] -            Parameter #1 [ <required> $mutex ] -            Parameter #2 [ <optional> $timeout ] +            Parameter #0 [ <required> integer $level ] +            Parameter #1 [ <required> integer $name ] +            Parameter #2 [ <required> integer $value ] +          } +          - Return [ boolean ] +        } + +        Method [ <internal:pthreads> public method getOption ] { + +          - Parameters [2] { +            Parameter #0 [ <required> integer $level ] +            Parameter #1 [ <required> integer $name ]            } +          - Return [ integer ]          } -        Method [ <internal:pthreads> final static public method broadcast ] { +        Method [ <internal:pthreads> public method bind ] { + +          - Parameters [2] { +            Parameter #0 [ <required> string $host ] +            Parameter #1 [ <optional> integer $port ] +          } +          - Return [ boolean ] +        } + +        Method [ <internal:pthreads> public method listen ] {            - Parameters [1] { -            Parameter #0 [ <required> $condition ] +            Parameter #0 [ <required> integer $backlog ]            } +          - Return [ boolean ]          } -        Method [ <internal:pthreads> final static public method destroy ] { +        Method [ <internal:pthreads> public method accept ] {            - Parameters [1] { -            Parameter #0 [ <required> $condition ] +            Parameter #0 [ <optional> $class ]            }          } -      } -      - Properties [0] { -      } +        Method [ <internal:pthreads> public method connect ] { -      - Methods [1] { -        Method [ <internal:pthreads, ctor> final public method __construct ] { +          - Parameters [2] { +            Parameter #0 [ <required> string $host ] +            Parameter #1 [ <optional> integer $port ] +          } +          - Return [ boolean ] +        } -          - Parameters [0] { +        Method [ <internal:pthreads> public method read ] { + +          - Parameters [3] { +            Parameter #0 [ <required> integer $length ] +            Parameter #1 [ <optional> integer $flags ] +            Parameter #2 [ <optional> integer $type ]            }          } -      } -    } -    Class [ <internal:pthreads> <iterateable> class Collectable extends Threaded implements Countable, Traversable ] { +        Method [ <internal:pthreads> public method write ] { -      - Constants [0] { -      } +          - Parameters [2] { +            Parameter #0 [ <required> string $buffer ] +            Parameter #1 [ <optional> integer $length ] +          } +        } -      - Static properties [0] { -      } +        Method [ <internal:pthreads> public method send ] { -      - Static methods [2] { -        Method [ <internal:pthreads, inherits Threaded> static public method extend ] { +          - Parameters [3] { +            Parameter #0 [ <required> string $buffer ] +            Parameter #1 [ <required> integer $length ] +            Parameter #2 [ <required> integer $flags ] +          } +        } -          - Parameters [1] { -            Parameter #0 [ <required> $class ] +        Method [ <internal:pthreads> public method recvfrom ] { + +          - Parameters [5] { +            Parameter #0 [ <required> string or NULL &$buffer ] +            Parameter #1 [ <required> integer $length ] +            Parameter #2 [ <required> integer $flags ] +            Parameter #3 [ <required> string or NULL &$name ] +            Parameter #4 [ <optional> integer or NULL &$port ]            }          } -        Method [ <internal:pthreads, inherits Threaded> static public method from ] { +        Method [ <internal:pthreads> public method sendto ] { -          - Parameters [3] { -            Parameter #0 [ <required> Closure $run ] -            Parameter #1 [ <optional> Closure or NULL $construct ] -            Parameter #2 [ <optional> $args ] +          - Parameters [5] { +            Parameter #0 [ <required> string $buffer ] +            Parameter #1 [ <required> integer $length ] +            Parameter #2 [ <required> integer $flags ] +            Parameter #3 [ <required> string $addr ] +            Parameter #4 [ <optional> integer $port ]            }          } -      } -      - Properties [1] { -        Property [ <default> protected $garbage ] -      } +        Method [ <internal:pthreads> public method setBlocking ] { + +          - Parameters [1] { +            Parameter #0 [ <required> boolean $blocking ] +          } +          - Return [ boolean ] +        } -      - Methods [17] { -        Method [ <internal:pthreads> public method isGarbage ] { +        Method [ <internal:pthreads> public method getPeerName ] { -          - Parameters [0] { +          - Parameters [1] { +            Parameter #0 [ <optional> boolean $port ]            } +          - Return [ array ]          } -        Method [ <internal:pthreads> public method setGarbage ] { +        Method [ <internal:pthreads> public method getSockName ] { -          - Parameters [0] { +          - Parameters [1] { +            Parameter #0 [ <optional> boolean $port ]            } +          - Return [ array ]          } -        Method [ <internal:pthreads, inherits Threaded> public method run ] { +        Method [ <internal:pthreads> public method close ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method wait ] { +        Method [ <internal:pthreads> public method getLastError ] {            - Parameters [1] { -            Parameter #0 [ <optional> $timeout ] +            Parameter #0 [ <optional> boolean $clear ]            }          } -        Method [ <internal:pthreads, inherits Threaded> public method notify ] { +        Method [ <internal:pthreads> public method clearError ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method isRunning ] { +        Method [ <internal:pthreads, inherits Threaded> public method run ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method isWaiting ] { +        Method [ <internal:pthreads, inherits Threaded> public method wait ] { -          - Parameters [0] { +          - Parameters [1] { +            Parameter #0 [ <optional> integer $timeout ]            }          } -        Method [ <internal:pthreads, inherits Threaded> public method isTerminated ] { +        Method [ <internal:pthreads, inherits Threaded> public method notify ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method getTerminationInfo ] { +        Method [ <internal:pthreads, inherits Threaded> public method notifyOne ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method synchronized ] { +        Method [ <internal:pthreads, inherits Threaded> public method isRunning ] { -          - Parameters [1] { -            Parameter #0 [ <required> $function ] +          - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method lock ] { +        Method [ <internal:pthreads, inherits Threaded> public method isTerminated ] {            - Parameters [0] {            }          } -        Method [ <internal:pthreads, inherits Threaded> public method unlock ] { +        Method [ <internal:pthreads, inherits Threaded> public method synchronized ] { -          - Parameters [0] { +          - Parameters [1] { +            Parameter #0 [ <required> $function ]            }          } @@ -951,74 +1161,32 @@ Extension [ <persistent> extension #125 pthreads version 2.0.10 ] {            }          } -        Method [ <internal:pthreads, inherits Threaded, prototype Countable> public method count ] { +        Method [ <internal:pthreads, inherits Threaded> public method count ] {            - Parameters [0] {            }          } -      } -    } - -    Class [ <internal:pthreads> class Pool ] { - -      - Constants [0] { -      } - -      - Static properties [0] { -      } -      - Static methods [0] { -      } - -      - Properties [6] { -        Property [ <default> protected $size ] -        Property [ <default> protected $class ] -        Property [ <default> protected $workers ] -        Property [ <default> protected $work ] -        Property [ <default> protected $ctor ] -        Property [ <default> protected $last ] -      } - -      - Methods [6] { -        Method [ <internal:pthreads, ctor> public method __construct ] { +        Method [ <internal:pthreads, inherits Threaded, prototype Collectable> public method isGarbage ] { -          - Parameters [3] { -            Parameter #0 [ <required> $size ] -            Parameter #1 [ <optional> $class ] -            Parameter #2 [ <optional> $ctor ] -          } -        } - -        Method [ <internal:pthreads> public method resize ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $size ] -          } -        } - -        Method [ <internal:pthreads> public method submit ] { - -          - Parameters [1] { -            Parameter #0 [ <required> $task ] +          - Parameters [0] {            } +          - Return [ boolean ]          } -        Method [ <internal:pthreads> public method submitTo ] { +        Method [ <internal:pthreads, inherits Threaded> public method addRef ] { -          - Parameters [2] { -            Parameter #0 [ <required> $worker ] -            Parameter #1 [ <required> $task ] +          - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method collect ] { +        Method [ <internal:pthreads, inherits Threaded> public method delRef ] { -          - Parameters [1] { -            Parameter #0 [ <required> $collector ] +          - Parameters [0] {            }          } -        Method [ <internal:pthreads> public method shutdown ] { +        Method [ <internal:pthreads, inherits Threaded> public method getRefCount ] {            - Parameters [0] {            } diff --git a/php-pecl-pthreads.spec b/php-pecl-pthreads.spec index d95c72d..d9d5e3a 100644 --- a/php-pecl-pthreads.spec +++ b/php-pecl-pthreads.spec @@ -8,20 +8,26 @@  #  %{?scl:          %scl_package        php-pecl-pthreads} +%global gh_commit   0c1d9bc96752a8ecba5f024a2288abd05a802546 +%global gh_short    %(c=%{gh_commit}; echo ${c:0:7}) +%global gh_owner    krakjoe +%global gh_project  pthreads +  %global pecl_name pthreads  %global ini_name  40-%{pecl_name}.ini  Summary:        Threading API  Name:           %{?scl_prefix}php-pecl-%{pecl_name} -Version:        3.1.6 +Version:        3.2.0  Release:        1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}  License:        PHP -Group:          Development/Languages  URL:            http://pecl.php.net/package/%{pecl_name} -Source0:        http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +#Source0:       http://pecl.php.net/get/%%{pecl_name}-%%{version}.tgz +Source0:        https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz + +Patch0:         https://patch-diff.githubusercontent.com/raw/krakjoe/pthreads/pull/913.patch -BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires:  %{?scl_prefix}php-zts-devel > 7 +BuildRequires:  %{?scl_prefix}php-zts-devel > 7.2  BuildRequires:  %{?scl_prefix}php-pear  Requires:       %{?scl_prefix}php(zend-abi) = %{php_zend_api} @@ -37,16 +43,20 @@ Provides:       %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{relea  %if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}  # Other third party repo stuff -Obsoletes:     php53-pecl-%{pecl_name}  <= %{version} -Obsoletes:     php53u-pecl-%{pecl_name} <= %{version} -Obsoletes:     php54-pecl-%{pecl_name}  <= %{version} -Obsoletes:     php54w-pecl-%{pecl_name} <= %{version}  Obsoletes:     php55u-pecl-%{pecl_name} <= %{version}  Obsoletes:     php55w-pecl-%{pecl_name} <= %{version}  Obsoletes:     php56u-pecl-%{pecl_name} <= %{version}  Obsoletes:     php56w-pecl-%{pecl_name} <= %{version}  Obsoletes:     php70u-pecl-%{pecl_name} <= %{version}  Obsoletes:     php70w-pecl-%{pecl_name} <= %{version} +Obsoletes:     php71u-pecl-%{pecl_name} <= %{version} +Obsoletes:     php71w-pecl-%{pecl_name} <= %{version} +Obsoletes:     php72u-pecl-%{pecl_name} <= %{version} +Obsoletes:     php72w-pecl-%{pecl_name} <= %{version} +%if "%{php_version}" > "7.3" +Obsoletes:     php73u-pecl-%{pecl_name} <= %{version} +Obsoletes:     php73w-pecl-%{pecl_name} <= %{version} +%endif  %endif  %if 0%{?fedora} < 20 && 0%{?rhel} < 7 @@ -68,6 +78,11 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO  %prep  %setup -q -c +mv %{gh_project}-%{gh_commit} %{pecl_name}-%{version} +cd %{pecl_name}-%{version} +%patch0 -p1 +cd .. +mv %{pecl_name}-%{version}/package.xml .  # Don't install/register tests  sed -e 's/role="test"/role="src"/' \ @@ -92,6 +107,8 @@ EOF  %build +%{?dtsenable} +  cd %{pecl_name}-%{version}  %{_bindir}/zts-phpize  %configure \ @@ -100,10 +117,9 @@ make %{?_smp_mflags}  %install -rm -rf %{buildroot} +%{?dtsenable} -make -C %{pecl_name}-%{version} \ -     install INSTALL_ROOT=%{buildroot} +make -C %{pecl_name}-%{version} install INSTALL_ROOT=%{buildroot}  # install config file  install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} @@ -119,7 +135,7 @@ do sed -e 's/\r//' -i $i  done -%if 0%{?fedora} < 24 +%if 0%{?fedora} < 24 && 0%{?rhel} < 8  # when pear installed alone, after us  %triggerin -- %{?scl_prefix}php-pear  if [ -x %{__pecl} ] ; then @@ -153,17 +169,13 @@ rm tests/trait-alias-bug.phpt  : Upstream test suite  for ZTS extension  TEST_PHP_EXECUTABLE=%{_bindir}/zts-php \  TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \ +SKIP_ONLINE_TESTS=1 \  NO_INTERACTION=1 \  REPORT_EXIT_STATUS=1 \  %{_bindir}/zts-php -n run-tests.php --show-diff -%clean -rm -rf %{buildroot} - -  %files -%defattr(-,root,root,-)  %{?_licensedir:%license %{pecl_name}-%{version}/LICENSE}  %doc %{pecl_docdir}/%{pecl_name}  %{pecl_xmldir}/%{name}.xml @@ -173,6 +185,12 @@ rm -rf %{buildroot}  %changelog +* Thu Jan  3 2019 Remi Collet <remi@remirepo.Net> - 3.2.0-1 +- Update to 3.2.0 (stable) +- raise minimal PHP version to 7.2 +- sources from github +- open https://github.com/krakjoe/pthreads/pull/913 file list +  * Sat Feb 13 2016 Remi Collet <remi@fedoraproject.org> - 3.1.6-1  - Update to 3.1.6 (stable) | 
