summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO5
-rw-r--r--REFLECTION14
-rw-r--r--php-pecl-memprof.spec25
3 files changed, 19 insertions, 25 deletions
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 [ <persistent> extension #107 memprof version 2.0.0 ] {
+Extension [ <persistent> extension #116 memprof version 2.1.0 ] {
- Functions {
Function [ <internal:memprof> function memprof_enabled ] {
@@ -33,18 +33,6 @@ Extension [ <persistent> extension #107 memprof version 2.0.0 ] {
Parameter #0 [ <required> $handle ]
}
}
- Function [ <internal:memprof> function memory_get_peak_usage ] {
-
- - Parameters [1] {
- Parameter #0 [ <optional> $real ]
- }
- }
- Function [ <internal:memprof> function memory_get_usage ] {
-
- - Parameters [1] {
- Parameter #0 [ <optional> $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 <remi@remirepo.net> - 2.1.0-1
+- update to 2.1.0
+
* Tue Sep 03 2019 Remi Collet <remi@remirepo.net> - 2.0.0-6
- rebuild for 7.4.0RC1