diff options
author | Remi Collet <remi@remirepo.net> | 2024-02-22 12:32:38 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-02-22 12:32:38 +0100 |
commit | 8ddc4aa188cd1ba114d0159fc497f3731157c4c7 (patch) | |
tree | 939a9148e976e221f440e3c63f7165744abb9222 | |
parent | 547660bf3e9d5c3eac6112d594b64bd13b01cdb6 (diff) |
update to 0.3.0RC1
drop support for PHP 5 and 7
-rw-r--r-- | PHPINFO | 2 | ||||
-rw-r--r-- | REFLECTION | 45 | ||||
-rw-r--r-- | php-pecl-dio.spec | 43 |
3 files changed, 46 insertions, 44 deletions
@@ -2,4 +2,4 @@ dio dio support => enabled -version => 0.2.2 +version => 0.3.0RC1 @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #64 dio version 0.2.2 ] { +Extension [ <persistent> extension #64 dio version 0.3.0RC1 ] { - Constants [36] { Constant [ int O_RDONLY ] { 0 } @@ -43,9 +43,9 @@ Extension [ <persistent> extension #64 dio version 0.2.2 ] { Function [ <internal:dio> function dio_open ] { - Parameters [3] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <required> $flags ] - Parameter #2 [ <optional> $mode = <default> ] + Parameter #0 [ <required> string $filename ] + Parameter #1 [ <required> int $flags ] + Parameter #2 [ <optional> int $mode = 0 ] } } Function [ <internal:dio> function dio_fdopen ] { @@ -64,73 +64,80 @@ Extension [ <persistent> extension #64 dio version 0.2.2 ] { - Parameters [2] { Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $offset ] + Parameter #1 [ <required> int $offset ] } + - Return [ bool ] } Function [ <internal:dio> function dio_stat ] { - Parameters [1] { Parameter #0 [ <required> $fd ] } + - Return [ array|false ] } Function [ <internal:dio> function dio_seek ] { - Parameters [3] { Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $pos ] - Parameter #2 [ <required> $whence ] + Parameter #1 [ <required> int $pos ] + Parameter #2 [ <optional> int $whence = SEEK_SET ] } + - Return [ int ] } Function [ <internal:dio> function dio_fcntl ] { - Parameters [3] { Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $cmd ] - Parameter #2 [ <optional> $arg = <default> ] + Parameter #1 [ <required> int $cmd ] + Parameter #2 [ <optional> $arg = NULL ] } } Function [ <internal:dio> function dio_read ] { - Parameters [2] { Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $n = <default> ] + Parameter #1 [ <optional> int $n = 1024 ] } + - Return [ ?string ] } Function [ <internal:dio> function dio_write ] { - Parameters [3] { Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $data ] - Parameter #2 [ <optional> $len = <default> ] + Parameter #1 [ <required> string $data ] + Parameter #2 [ <optional> int $len = 0 ] } + - Return [ int ] } Function [ <internal:dio> function dio_close ] { - Parameters [1] { Parameter #0 [ <required> $fd ] } + - Return [ void ] } Function [ <internal:dio> function dio_tcsetattr ] { - Parameters [2] { Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $args ] + Parameter #1 [ <required> array $args ] } + - Return [ bool ] } Function [ <internal:dio> function dio_raw ] { - Parameters [3] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <required> $mode ] - Parameter #2 [ <optional> $options = <default> ] + Parameter #0 [ <required> string $filename ] + Parameter #1 [ <required> string $mode ] + Parameter #2 [ <optional> ?array $options = NULL ] } } Function [ <internal:dio> function dio_serial ] { - Parameters [3] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <required> $mode ] - Parameter #2 [ <optional> $options = <default> ] + Parameter #0 [ <required> string $filename ] + Parameter #1 [ <required> string $mode ] + Parameter #2 [ <optional> ?array $options = NULL ] } } } diff --git a/php-pecl-dio.spec b/php-pecl-dio.spec index b6e1dcb..428d01b 100644 --- a/php-pecl-dio.spec +++ b/php-pecl-dio.spec @@ -1,33 +1,24 @@ # remirepo spec file for php-pecl-dio # -# Copyright (c) 2013-2023 Remi Collet +# 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 # -%{?scl: %scl_package php-pecl-dio} - -# For PHP < 5.6 and EPEL-9 -%{!?__phpize: %global __phpize %{_bindir}/phpize} -%{!?__ztsphpize: %global __ztsphpize %{_bindir}/zts-phpize} -%{!?__phpconfig: %global __phpconfig %{_bindir}/php-config} -%{!?__ztsphpconfig:%global __ztsphpconfig %{_bindir}/zts-php-config} - -#global prever dev -%global pecl_name dio -%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} -%if "%{php_version}" < "5.6" -%global ini_name %{pecl_name}.ini -%else -%global ini_name 40-%{pecl_name}.ini -%endif -%global sources %{pecl_name}-%{version}%{?prever} -%global _configure ../%{sources}/configure +%{?scl:%scl_package php-pecl-dio} + +%global upstream_version 0.3.0 +%global upstream_prever RC1 +%global pecl_name dio +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%global ini_name 40-%{pecl_name}.ini +%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} +%global _configure ../%{sources}/configure Summary: Direct I/O functions Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 0.2.2 +Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP-3.01 URL: https://pecl.php.net/package/%{pecl_name} @@ -35,7 +26,7 @@ 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 Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} @@ -70,9 +61,9 @@ sed -e 's/role="test"/role="src"/' \ cd %{sources} # Sanity check, really often broken -extver=$(sed -n '/#define PHP_DIO_VERSION/{s/.* "//;s/".*$//;p}' php7/php_dio.h) -if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then - : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever:-%{prever}}. +extver=$(sed -n '/#define PHP_DIO_VERSION/{s/.* "//;s/".*$//;p}' src/php_dio.h) +if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then + : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}. exit 1 fi cd .. @@ -199,6 +190,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Thu Jan 25 2024 Remi Collet <remi@remirepo.net> - 0.3.0~RC1-1 +- update to 0.3.0RC1 +- drop support for PHP 5 and 7 + * Tue Jan 23 2024 Remi Collet <remi@remirepo.net> - 0.2.2-1 - update to 0.2.2 |