From 22ec5924ba2abd32720bc97b91a9c2c007badd60 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 6 Jul 2020 07:00:19 +0200 Subject: v2.1.0 --- PHPINFO | 5 +++++ REFLECTION | 14 +------------- php-pecl-memprof.spec | 25 +++++++++++++------------ 3 files changed, 19 insertions(+), 25 deletions(-) create mode 100644 PHPINFO diff --git a/PHPINFO b/PHPINFO new file mode 100644 index 0000000..bab398e --- /dev/null +++ b/PHPINFO @@ -0,0 +1,5 @@ + +memprof + +memprof support => enabled +memprof version => 2.1.0 diff --git a/REFLECTION b/REFLECTION index feef5ff..b6209b3 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #107 memprof version 2.0.0 ] { +Extension [ extension #116 memprof version 2.1.0 ] { - Functions { Function [ function memprof_enabled ] { @@ -33,18 +33,6 @@ Extension [ extension #107 memprof version 2.0.0 ] { Parameter #0 [ $handle ] } } - Function [ function memory_get_peak_usage ] { - - - Parameters [1] { - Parameter #0 [ $real ] - } - } - Function [ function memory_get_usage ] { - - - Parameters [1] { - Parameter #0 [ $real ] - } - } } } diff --git a/php-pecl-memprof.spec b/php-pecl-memprof.spec index 9f8a9f5..ea49b31 100644 --- a/php-pecl-memprof.spec +++ b/php-pecl-memprof.spec @@ -3,7 +3,7 @@ # # Fedora spec file for php-pecl-memprof # -# Copyright (c) 2013-2019 Remi Collet +# Copyright (c) 2013-2020 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -26,11 +26,11 @@ Summary: Memory usage profiler Name: %{?sub_prefix}php-pecl-%{pecl_name} -Version: 2.0.0 -Release: 6%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 2.1.0 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD -URL: http://pecl.php.net/package/%{pecl_name} -Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +URL: https://pecl.php.net/package/%{pecl_name} +Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel > 7 @@ -71,11 +71,11 @@ Obsoletes: php72u-pecl-%{pecl_name} <= %{version} Obsoletes: php72w-pecl-%{pecl_name} <= %{version} %endif %if "%{php_version}" > "7.3" -Obsoletes: php73-pecl-%{pecl_name} <= %{version} +Obsoletes: php73-pecl-%{pecl_name} <= %{version} Obsoletes: php73w-pecl-%{pecl_name} <= %{version} %endif %if "%{php_version}" > "7.4" -Obsoletes: php74-pecl-%{pecl_name} <= %{version} +Obsoletes: php74-pecl-%{pecl_name} <= %{version} Obsoletes: php74w-pecl-%{pecl_name} <= %{version} %endif %endif @@ -88,7 +88,8 @@ Obsoletes: php74w-pecl-%{pecl_name} <= %{version} %description -Memory usage profiler for PHP scripts. +Memprof is a fast and accurate memory profiler that can be used +to find the cause of memory leaks in PHP applications. Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. @@ -104,11 +105,8 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS -# https://github.com/arnaud-lb/php-memory-profiler/pull/13 -sed -e '/MEMPROF_VERSION/s/1.0.0/%{version}/' -i php_memprof.h - # Sanity check, really often broken -extver=$(sed -n '/#define MEMPROF_VERSION/{s/.* "//;s/".*$//;p}' php_memprof.h) +extver=$(sed -n '/#define PHP_MEMPROF_VERSION/{s/.* "//;s/".*$//;p}' php_memprof.h) if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever:-%{prever}}. exit 1 @@ -222,6 +220,9 @@ fi %changelog +* Sun Jul 5 2020 Remi Collet - 2.1.0-1 +- update to 2.1.0 + * Tue Sep 03 2019 Remi Collet - 2.0.0-6 - rebuild for 7.4.0RC1 -- cgit