[packages/php-pecl-proctitle] support for this is in php 5.5+

glen glen at pld-linux.org
Thu Nov 5 19:05:29 CET 2015


commit 9de7bcb0a7081ff1257daf448592cb4dd481cb9f
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Nov 5 20:04:59 2015 +0200

    support for this is in php 5.5+

 php-pecl-proctitle.spec | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/php-pecl-proctitle.spec b/php-pecl-proctitle.spec
index 35ea4ee..0bedb66 100644
--- a/php-pecl-proctitle.spec
+++ b/php-pecl-proctitle.spec
@@ -18,8 +18,9 @@ Obsoletes:	php-pecl-proctitle < 0.1.2-6
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-This extension allows changing the current process'. This is useful
-when using pcntl_fork() to identify running processes in process list.
+This extension allows changing the current process name. This is
+useful when using pcntl_fork() to identify running processes in
+process list.
 
 %description -l pl.UTF-8
 Rozszerzenie to pozwala na zmianę nazwy bieżącego procesu. Jest to
@@ -30,6 +31,17 @@ przypadku korzystania z pcntl_fork().
 %setup -qc
 mv %{modname}-%{version}/* .
 
+%if "%{php_major_version}.%{php_minor_version}" >= "5.5"
+cat >&2 <<-EOF
+
+Use 'cli_set_process_title()' instead, available since PHP >= 5.5
+
+http://php.net/manual/en/function.cli-set-process-title.php
+
+EOF
+exit 1
+%endif
+
 cat <<'EOF' > %{modname}.ini
 ; Enable %{modname} extension module
 extension=%{modname}.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-proctitle.git/commitdiff/9de7bcb0a7081ff1257daf448592cb4dd481cb9f



More information about the pld-cvs-commit mailing list