From 18b9dcadf4122bbfa61a6dd8ae6eb04d370a5934 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 3 Mar 2026 09:06:47 +0100 Subject: update to 2.4.0 --- PHPINFO | 2 +- REFLECTION | 254 +++++++++++++++++++++++++++++++++++++++++++++++----- php-orieg-judy.spec | 7 +- 3 files changed, 236 insertions(+), 27 deletions(-) diff --git a/PHPINFO b/PHPINFO index 78923bb..75a7111 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,7 +2,7 @@ judy Judy support => enabled -PHP Judy version => 2.3.0 +PHP Judy version => 2.4.0 sizeof(Word_t) => 8 sizeof(Pvoid_t) => 8 diff --git a/REFLECTION b/REFLECTION index 6d3566d..058efb8 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,7 +1,8 @@ -Extension [ extension #89 judy version 2.3.0 ] { +Extension [ extension #89 judy version 2.4.0 ] { - Dependencies { Dependency [ spl (Required) ] + Dependency [ json (Required) ] } - INI { @@ -11,7 +12,7 @@ Extension [ extension #89 judy version 2.3.0 ] { } - Constants [1] { - Constant [ string JUDY_VERSION ] { 2.3.0 } + Constant [ string JUDY_VERSION ] { 2.4.0 } } - Functions { @@ -24,32 +25,46 @@ Extension [ extension #89 judy version 2.3.0 ] { Function [ function judy_type ] { - Parameters [1] { - Parameter #0 [ $array ] + Parameter #0 [ mixed $array ] } + - Return [ int ] } } - Classes [1] { - Class [ class Judy implements ArrayAccess, Countable, Iterator, Traversable ] { + Class [ class Judy implements ArrayAccess, Countable, Iterator, Traversable, JsonSerializable ] { - - Constants [5] { + - Constants [10] { Constant [ public int BITSET ] { 1 } Constant [ public int INT_TO_INT ] { 2 } Constant [ public int INT_TO_MIXED ] { 3 } Constant [ public int STRING_TO_INT ] { 4 } Constant [ public int STRING_TO_MIXED ] { 5 } + Constant [ public int INT_TO_PACKED ] { 6 } + Constant [ public int STRING_TO_MIXED_HASH ] { 7 } + Constant [ public int STRING_TO_INT_HASH ] { 8 } + Constant [ public int STRING_TO_MIXED_ADAPTIVE ] { 9 } + Constant [ public int STRING_TO_INT_ADAPTIVE ] { 10 } } - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ static public method fromArray ] { + + - Parameters [2] { + Parameter #0 [ int $type ] + Parameter #1 [ array $data ] + } + - Return [ Judy ] + } } - Properties [0] { } - - Methods [25] { + - Methods [48] { Method [ public method __construct ] { - Parameters [1] { @@ -87,9 +102,10 @@ Extension [ extension #89 judy version 2.3.0 ] { Method [ public method size ] { - Parameters [2] { - Parameter #0 [ $index_start = ] - Parameter #1 [ $index_end = ] + Parameter #0 [ mixed $index_start = 0 ] + Parameter #1 [ mixed $index_end = -1 ] } + - Return [ int ] } Method [ public method count ] { @@ -102,64 +118,138 @@ Extension [ extension #89 judy version 2.3.0 ] { Method [ public method byCount ] { - Parameters [1] { - Parameter #0 [ $nth_index ] + Parameter #0 [ mixed $nth_index ] } + - Return [ mixed ] } Method [ public method first ] { - Parameters [1] { - Parameter #0 [ $index ] + Parameter #0 [ mixed $index = null ] } + - Return [ mixed ] } Method [ public method searchNext ] { - Parameters [1] { - Parameter #0 [ $index ] + Parameter #0 [ mixed $index ] } + - Return [ mixed ] } Method [ public method last ] { - Parameters [1] { - Parameter #0 [ $index ] + Parameter #0 [ mixed $index = null ] } + - Return [ mixed ] } Method [ public method prev ] { - Parameters [1] { - Parameter #0 [ $index ] + Parameter #0 [ mixed $index ] } + - Return [ mixed ] } Method [ public method firstEmpty ] { - Parameters [1] { - Parameter #0 [ $index ] + Parameter #0 [ mixed $index = null ] } + - Return [ mixed ] } Method [ public method nextEmpty ] { - Parameters [1] { - Parameter #0 [ $index ] + Parameter #0 [ mixed $index ] } + - Return [ mixed ] } Method [ public method lastEmpty ] { - Parameters [1] { - Parameter #0 [ $index ] + Parameter #0 [ mixed $index = null ] } + - Return [ mixed ] } Method [ public method prevEmpty ] { - Parameters [1] { - Parameter #0 [ $index ] + Parameter #0 [ mixed $index ] + } + - Return [ mixed ] + } + + Method [ public method union ] { + + - Parameters [1] { + Parameter #0 [ Judy $other ] + } + - Return [ Judy ] + } + + Method [ public method intersect ] { + + - Parameters [1] { + Parameter #0 [ Judy $other ] + } + - Return [ Judy ] + } + + Method [ public method diff ] { + + - Parameters [1] { + Parameter #0 [ Judy $other ] + } + - Return [ Judy ] + } + + Method [ public method xor ] { + + - Parameters [1] { + Parameter #0 [ Judy $other ] + } + - Return [ Judy ] + } + + Method [ public method mergeWith ] { + + - Parameters [1] { + Parameter #0 [ Judy $other ] + } + - Return [ void ] + } + + Method [ public method slice ] { + + - Parameters [2] { + Parameter #0 [ mixed $start ] + Parameter #1 [ mixed $end ] + } + - Return [ Judy ] + } + + Method [ public method offsetExists ] { + + - Parameters [1] { + Parameter #0 [ mixed $offset ] + } + - Return [ bool ] + } + + Method [ public method offsetGet ] { + + - Parameters [1] { + Parameter #0 [ mixed $offset ] } + - Return [ mixed ] } Method [ public method offsetSet ] { @@ -179,20 +269,58 @@ Extension [ extension #89 judy version 2.3.0 ] { - Return [ void ] } - Method [ public method offsetGet ] { + Method [ public method jsonSerialize ] { - - Parameters [1] { - Parameter #0 [ mixed $offset ] + - Parameters [0] { } - Return [ mixed ] } - Method [ public method offsetExists ] { + Method [ public method __serialize ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ public method __unserialize ] { - Parameters [1] { - Parameter #0 [ mixed $offset ] + Parameter #0 [ array $data ] } - - Return [ bool ] + - Return [ void ] + } + + Method [ public method toArray ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ public method putAll ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + + Method [ public method getAll ] { + + - Parameters [1] { + Parameter #0 [ array $keys ] + } + - Return [ array ] + } + + Method [ public method increment ] { + + - Parameters [2] { + Parameter #0 [ mixed $key ] + Parameter #1 [ int $amount = 1 ] + } + - Return [ int ] } Method [ public method rewind ] { @@ -229,6 +357,84 @@ Extension [ extension #89 judy version 2.3.0 ] { } - Return [ void ] } + + Method [ public method keys ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ public method values ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ public method forEach ] { + + - Parameters [1] { + Parameter #0 [ callable $callback ] + } + - Return [ void ] + } + + Method [ public method filter ] { + + - Parameters [1] { + Parameter #0 [ callable $predicate ] + } + - Return [ Judy ] + } + + Method [ public method map ] { + + - Parameters [1] { + Parameter #0 [ callable $transform ] + } + - Return [ Judy ] + } + + Method [ public method sumValues ] { + + - Parameters [0] { + } + - Return [ int|float ] + } + + Method [ public method averageValues ] { + + - Parameters [0] { + } + - Return [ ?float ] + } + + Method [ public method populationCount ] { + + - Parameters [2] { + Parameter #0 [ mixed $start = 0 ] + Parameter #1 [ mixed $end = -1 ] + } + - Return [ int ] + } + + Method [ public method deleteRange ] { + + - Parameters [2] { + Parameter #0 [ mixed $start ] + Parameter #1 [ mixed $end ] + } + - Return [ int ] + } + + Method [ public method equals ] { + + - Parameters [1] { + Parameter #0 [ Judy $other ] + } + - Return [ bool ] + } } } } diff --git a/php-orieg-judy.spec b/php-orieg-judy.spec index 183b871..052d5a5 100644 --- a/php-orieg-judy.spec +++ b/php-orieg-judy.spec @@ -18,7 +18,7 @@ # Extension %global ext_name judy %global ini_name 40-%{ext_name}.ini -%global upstream_version 2.3.0 +%global upstream_version 2.4.0 #global upstream_prever RC1 # PIE / packagist %global pie_vend orieg @@ -27,7 +27,7 @@ %global gh_vend orieg %global gh_proj php-judy %global forgeurl https://github.com/%{gh_vend}/%{gh_proj} -#global commit 6065ed4fb66d3ecfee41fb21a78fbcdddd3efecb +#global commit d258bee92c36c0342882480bed8cb8c15a939e85 %global tag v%{upstream_version}%{?upstream_prever} # for EL-8 to avoid TAG usage %global archivename %{gh_proj}-%{upstream_version}%{?upstream_prever} @@ -143,6 +143,9 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}/%{php_extdir}/%{ext_name}.so" \ %changelog +* Tue Mar 3 2026 Remi Collet - 2.4.0-1 +- update to 2.4.0 + * Sat Feb 28 2026 Remi Collet - 2.3.0-1 - update to 2.3.0 -- cgit