From 2136fbc0059791934e61f54b9673677945cec33c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 24 May 2022 08:03:00 +0200 Subject: update to 0.1.1 open https://github.com/ace411/php-trie-ext/issues/6 bad archive open https://github.com/ace411/php-trie-ext/issues/7 bad version --- PHPINFO | 2 +- REFLECTION | 274 ++++++++++++++++++++++++++++++++++++----------------- php-pecl-trie.spec | 43 ++++----- 3 files changed, 204 insertions(+), 115 deletions(-) diff --git a/PHPINFO b/PHPINFO index e36335e..358308a 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,7 +2,7 @@ php_trie php_trie support => enabled -php_trie version => 0.1.0 +php_trie version => 0.1.1 php_trie author => Lochemem Bruno Michael Trie available => yes Hat Trie available => yes diff --git a/REFLECTION b/REFLECTION index 3379c68..452ebc6 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #91 php_trie version 0.1.0 ] { +Extension [ extension #120 php_trie version 0.1.1 ] { - Dependencies { Dependency [ json (Required) ] @@ -6,6 +6,9 @@ Extension [ extension #91 php_trie version 0.1.0 ] { - Functions { Function [ function __construct ] { + + - Parameters [0] { + } } Function [ static function fromArray ] { @@ -16,58 +19,78 @@ Extension [ extension #91 php_trie version 0.1.0 ] { Function [ function insert ] { - Parameters [2] { - Parameter #0 [ $key ] - Parameter #1 [ $entry ] + Parameter #0 [ mixed $key ] + Parameter #1 [ mixed $entry ] } + - Return [ void ] } - Function [ function keyExists ] { + Function [ function search ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ mixed $key ] } + - Return [ mixed ] } - Function [ function search ] { + Function [ function size ] { - - Parameters [1] { - Parameter #0 [ $key ] + - Parameters [0] { } + - Return [ int ] } - Function [ function erase ] { + Function [ function toArray ] { - - Parameters [1] { - Parameter #0 [ $key ] + - Parameters [0] { } + - Return [ array ] } - Function [ function size ] { - } - Function [ function offsetSet ] { + Function [ function jsonSerialize ] { - - Parameters [2] { - Parameter #0 [ $key ] - Parameter #1 [ $entry ] + - Parameters [0] { } + - Return [ mixed ] } - Function [ function offsetGet ] { + Function [ function keyExists ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ mixed $key ] } + - Return [ bool ] } Function [ function offsetExists ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ mixed $key ] } + - Return [ bool ] } Function [ function offsetUnset ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ mixed $key ] } + - Return [ void ] } - Function [ function toArray ] { + Function [ function erase ] { + + - Parameters [1] { + Parameter #0 [ mixed $key ] + } + - Return [ void ] } - Function [ function jsonSerialize ] { + Function [ function offsetSet ] { + + - Parameters [2] { + Parameter #0 [ mixed $key ] + Parameter #1 [ mixed $entry ] + } + - Return [ void ] + } + Function [ function offsetGet ] { + + - Parameters [1] { + Parameter #0 [ mixed $key ] + } + - Return [ mixed ] } Function [ function prefixSearch ] { @@ -119,73 +142,96 @@ Extension [ extension #91 php_trie version 0.1.0 ] { - Methods [16] { Method [ public method __construct ] { + + - Parameters [0] { + } } Method [ public method insert ] { - Parameters [2] { - Parameter #0 [ $key ] - Parameter #1 [ $entry ] + Parameter #0 [ mixed $key ] + Parameter #1 [ mixed $entry ] } + - Return [ void ] } - Method [ public method keyExists ] { + Method [ public method search ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ mixed $key ] } + - Return [ mixed ] } - Method [ public method search ] { + Method [ public method size ] { - - Parameters [1] { - Parameter #0 [ $key ] + - Parameters [0] { } + - Return [ int ] } - Method [ public method erase ] { + Method [ public method toArray ] { - - Parameters [1] { - Parameter #0 [ $key ] + - Parameters [0] { } + - Return [ array ] } - Method [ public method size ] { - } - - Method [ public method offsetSet ] { + Method [ public method jsonSerialize ] { - - Parameters [2] { - Parameter #0 [ $key ] - Parameter #1 [ $entry ] + - Parameters [0] { } + - Return [ mixed ] } - Method [ public method offsetGet ] { + Method [ public method keyExists ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ mixed $key ] } + - Return [ bool ] } Method [ public method offsetExists ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ mixed $key ] } + - Return [ bool ] } Method [ public method offsetUnset ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ mixed $key ] } + - Return [ void ] } - Method [ public method toArray ] { + Method [ public method erase ] { + + - Parameters [1] { + Parameter #0 [ mixed $key ] + } + - Return [ void ] } - Method [ public method jsonSerialize ] { + Method [ public method offsetSet ] { + + - Parameters [2] { + Parameter #0 [ mixed $key ] + Parameter #1 [ mixed $entry ] + } + - Return [ void ] + } + + Method [ public method offsetGet ] { + + - Parameters [1] { + Parameter #0 [ mixed $key ] + } + - Return [ mixed ] } Method [ public method prefixSearch ] { @@ -265,42 +311,71 @@ Extension [ extension #91 php_trie version 0.1.0 ] { } Method [ public method size ] { + + - Parameters [0] { + } + - Return [ int ] } - Method [ public method filter ] { + Method [ public method toArray ] { - - Parameters [1] { - Parameter #0 [ callable $func ] + - Parameters [0] { } + - Return [ array ] } - Method [ public method insert ] { + Method [ public method jsonSerialize ] { - - Parameters [2] { - Parameter #0 [ $key ] - Parameter #1 [ $entry ] + - Parameters [0] { } + - Return [ mixed ] } Method [ public method keyExists ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ mixed $key ] } + - Return [ bool ] } - Method [ public method search ] { + Method [ public method offsetExists ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ mixed $key ] } + - Return [ bool ] + } + + Method [ public method offsetUnset ] { + + - Parameters [1] { + Parameter #0 [ mixed $key ] + } + - Return [ void ] } Method [ public method erase ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ mixed $key ] } + - Return [ void ] + } + + Method [ public method filter ] { + + - Parameters [1] { + Parameter #0 [ callable $func ] + } + } + + Method [ public method search ] { + + - Parameters [1] { + Parameter #0 [ mixed $key ] + } + - Return [ mixed ] } Method [ public method prefixSearch ] { @@ -331,39 +406,30 @@ Extension [ extension #91 php_trie version 0.1.0 ] { } } - Method [ public method offsetSet ] { + Method [ public method insert ] { - Parameters [2] { - Parameter #0 [ $key ] - Parameter #1 [ $entry ] + Parameter #0 [ mixed $key ] + Parameter #1 [ mixed $entry ] } + - Return [ void ] } - Method [ public method offsetGet ] { - - - Parameters [1] { - Parameter #0 [ $key ] - } - } - - Method [ public method offsetExists ] { + Method [ public method offsetSet ] { - - Parameters [1] { - Parameter #0 [ $key ] + - Parameters [2] { + Parameter #0 [ mixed $key ] + Parameter #1 [ mixed $entry ] } + - Return [ void ] } - Method [ public method offsetUnset ] { + Method [ public method offsetGet ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ mixed $key ] } - } - - Method [ public method toArray ] { - } - - Method [ public method jsonSerialize ] { + - Return [ mixed ] } Method [ public method merge ] { @@ -376,7 +442,7 @@ Extension [ extension #91 php_trie version 0.1.0 ] { } } - Class [ class TrieException extends RuntimeException implements Throwable ] { + Class [ class TrieException extends Exception implements Throwable, Stringable ] { - Constants [0] { } @@ -388,47 +454,81 @@ Extension [ extension #91 php_trie version 0.1.0 ] { } - Properties [4] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected $file = NULL ] + Property [ protected $line = NULL ] } - Methods [10] { Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] } } Method [ public method __wakeup ] { + + - Parameters [0] { + } } Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getCode ] { + + - Parameters [0] { + } } Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] } Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] } Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] } Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ public method __toString ] { + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] } } } diff --git a/php-pecl-trie.spec b/php-pecl-trie.spec index f8d43b2..b3dc79b 100644 --- a/php-pecl-trie.spec +++ b/php-pecl-trie.spec @@ -1,6 +1,6 @@ # remirepo spec file for php-pecl-trie # -# Copyright (c) 2013-2020 Remi Collet +# Copyright (c) 2013-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -19,7 +19,7 @@ Summary: PHP Trie extension Name: %{?sub_prefix}php-pecl-trie -Version: 0.1.0 +Version: 0.1.1 Release: 0%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP URL: https://pecl.php.net/package/%{pecl_name} @@ -30,8 +30,9 @@ Source1: https://github.com/Tessil/hat-trie/archive/v%{libver}.tar.gz # https://github.com/ace411/php-trie-ext/pull/1 Patch0: %{pecl_name}-build.patch +BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel > 7.3 +BuildRequires: %{?scl_prefix}php-devel >= 7.3 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-json @@ -49,20 +50,6 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{rele Provides: bundled(hat-trie) = %{libver} -%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} -# Other third party repo stuff -Obsoletes: php73-pecl-%{pecl_name} <= %{version} -%if "%{php_version}" > "7.4" -Obsoletes: php74-pecl-%{pecl_name} <= %{version} -%endif -%endif - -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter shared private -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} -%endif - %description Trie and HAT trie data structures for PHP. @@ -72,7 +59,9 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -a 1 -mv %{pecl_name}-%{version} NTS +# https://github.com/ace411/php-trie-ext/issues/6 +mkdir NTS +mv LICENSE README.md changes.md common.cpp config.m4 config.w32 examples php_trie.cpp php_trie_ext.h tests trie.h NTS/ # Don't install/register tests sed -e 's/role="test"/role="src"/' \ @@ -80,7 +69,8 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS -%patch0 -p1 -b .pr1 +# https://github.com/ace411/php-trie-ext/issues/7 +sed -e s/0.1.0/0.1.1/ -i php_trie_ext.h # Sanity check, really often broken extver=$(sed -n '/#define PHP_TRIE_EXT_EXTVER/{s/.* "//;s/".*$//;p}' php_trie_ext.h) @@ -184,11 +174,8 @@ cd NTS --modules | grep %{pecl_name} : Upstream test suite for NTS extension -TEST_PHP_EXECUTABLE=%{__php} \ TEST_PHP_ARGS="$OPT -d extension=$PWD/modules/%{pecl_name}.so" \ -NO_INTERACTION=1 \ -REPORT_EXIT_STATUS=1 \ -%{__php} -n run-tests.php --show-diff +%{__php} -n run-tests.php -q -P --show-diff %if %{with_zts} @@ -199,11 +186,8 @@ cd ../ZTS --modules | grep %{pecl_name} : Upstream test suite for ZTS extension -TEST_PHP_EXECUTABLE=%{__ztsphp} \ TEST_PHP_ARGS="$OPT -d extension=$PWD/modules/%{pecl_name}.so" \ -NO_INTERACTION=1 \ -REPORT_EXIT_STATUS=1 \ -%{__ztsphp} -n run-tests.php --show-diff +%{__ztsphp} -n run-tests.php -q -P --show-diff %endif @@ -222,6 +206,11 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Tue May 24 2022 Remi Collet - 0.1.1-1 +- update to 0.1.1 +- open https://github.com/ace411/php-trie-ext/issues/6 bad archive +- open https://github.com/ace411/php-trie-ext/issues/7 bad version + * Wed Sep 9 2020 Remi Collet - 0.1.0-1 - initial package, version 0.1.0 (stable) - open https://github.com/ace411/php-trie-ext/pull/1 fix build -- cgit