[php] PHP 5.6.0RC2

Remi Collet remi at fedoraproject.org
Mon Jul 7 09:24:07 UTC 2014


commit f375c6a3b06160fbcee5020dc9536522dcd6fa5d
Author: Remi Collet <remi at fedoraproject.org>
Date:   Mon Jul 7 11:24:17 2014 +0200

    PHP 5.6.0RC2

 .gitignore       |    1 +
 php-man.patch    |   26 ++++++++++++
 php-phpdbg.patch |  120 ------------------------------------------------------
 php-syslog.patch |   30 +++++++++++++
 php.spec         |   14 +++++--
 sources          |    2 +-
 6 files changed, 68 insertions(+), 125 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d359c30..cfa3414 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,3 +26,4 @@ php-5.4.*.bz2
 /php-5.5.12-strip.tar.xz
 /php-5.5.13-strip.tar.xz
 /php-5.6.0RC1-strip.tar.xz
+/php-5.6.0RC2-strip.tar.xz
diff --git a/php-man.patch b/php-man.patch
new file mode 100644
index 0000000..60ab16d
--- /dev/null
+++ b/php-man.patch
@@ -0,0 +1,26 @@
+From 07d227229771015600789ae36e3b12ce29b1f339 Mon Sep 17 00:00:00 2001
+From: Andy Thompson <me at andytson.com>
+Date: Sat, 5 Jul 2014 13:05:05 +0100
+Subject: [PATCH] Fix phpdbg.1 man page installation when build != src
+ directory
+
+---
+ Makefile.frag | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.frag b/Makefile.frag
+index b276aaa..36c7512 100644
+--- a/sapi/phpdbg/Makefile.frag
++++ b/sapi/phpdbg/Makefile.frag
+@@ -28,7 +28,7 @@ install-phpdbg: $(BUILD_BINARY)
+ 	@$(INSTALL) -m 0755 $(BUILD_BINARY) $(INSTALL_ROOT)$(bindir)/$(program_prefix)phpdbg$(program_suffix)$(EXEEXT)
+ 	@echo "Installing phpdbg man page:       $(INSTALL_ROOT)$(mandir)/man1/"
+ 	@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
+-	@$(INSTALL_DATA) sapi/phpdbg/phpdbg.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)phpdbg$(program_suffix).1
++	@$(INSTALL_DATA) $(srcdir)/phpdbg.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)phpdbg$(program_suffix).1
+ 
+ clean-phpdbg:
+ 	@echo "Cleaning phpdbg object files ..."
+-- 
+1.9.2
+
diff --git a/php-syslog.patch b/php-syslog.patch
new file mode 100644
index 0000000..3fdbc98
--- /dev/null
+++ b/php-syslog.patch
@@ -0,0 +1,30 @@
+From a0ecb3794f00e65cd2a073b2073e32d6c2fb7180 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi at php.net>
+Date: Fri, 27 Jun 2014 09:45:53 +0200
+Subject: [PATCH] Fix Bug #67530 	error_log=syslog ignored
+
+As for Bug #64915
+Systemd use --nodaemonize but need to error_log to file or syslog to be honoured
+---
+ sapi/fpm/fpm/fpm_stdio.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/sapi/fpm/fpm/fpm_stdio.c b/sapi/fpm/fpm/fpm_stdio.c
+index d81e101..769d3a6 100644
+--- a/sapi/fpm/fpm/fpm_stdio.c
++++ b/sapi/fpm/fpm/fpm_stdio.c
+@@ -268,7 +268,11 @@ int fpm_stdio_open_error_log(int reopen) /* {{{ */
+ 	if (!strcasecmp(fpm_global_config.error_log, "syslog")) {
+ 		openlog(fpm_global_config.syslog_ident, LOG_PID | LOG_CONS, fpm_global_config.syslog_facility);
+ 		fpm_globals.error_log_fd = ZLOG_SYSLOG;
++#if HAVE_UNISTD_H
++		if (fpm_global_config.daemonize || (!isatty(STDERR_FILENO) && !fpm_globals.force_stderr)) {
++#else
+ 		if (fpm_global_config.daemonize) {
++#endif
+ 			zlog_set_fd(fpm_globals.error_log_fd);
+ 		}
+ 		return 0;
+-- 
+1.9.2
+
diff --git a/php.spec b/php.spec
index 67e757e..56af9a3 100644
--- a/php.spec
+++ b/php.spec
@@ -66,12 +66,12 @@
 %global db_devel  libdb-devel
 %endif
 
-%global rcver         RC1
+%global rcver         RC2
 
 Summary: PHP scripting language for creating dynamic web sites
 Name: php
 Version: 5.6.0
-Release: 0.2.%{rcver}%{?dist}
+Release: 0.3.%{rcver}%{?dist}
 # All files licensed under PHP version 3.01, except
 # Zend is licensed under Zend
 # TSRM is licensed under BSD
@@ -123,7 +123,8 @@ Patch47: php-5.4.9-phpinfo.patch
 Patch48: php-5.6.0-mock.patch
 
 # Upstream fixes (100+)
-Patch100: php-phpdbg.patch
+Patch100: php-man.patch
+Patch101: php-syslog.patch
 
 # Security fixes (200+)
 
@@ -746,7 +747,8 @@ httpd -V  | grep -q 'threaded:.*yes' && exit 1
 %patch48 -p1 -b .mock
 
 # upstream patches
-%patch100 -p0 -b .libedit
+%patch100 -p1 -b .manpath
+%patch101 -p1 -b .syslog
 
 # security patches
 
@@ -1499,6 +1501,7 @@ exit 0
 %files dbg
 %{_bindir}/phpdbg
 %doc sapi/phpdbg/{README.md,CREDITS}
+%{_mandir}/man1/phpdbg.1*
 
 %files fpm
 %doc php-fpm.conf.default
@@ -1579,6 +1582,9 @@ exit 0
 
 
 %changelog
+* Mon Jul  7 2014 Remi Collet <rcollet at redhat.com> 5.6.0-0.3.RC2
+- php 5.6.0RC2
+
 * Mon Jun 23 2014 Remi Collet <rcollet at redhat.com> 5.6.0-0.2.RC1
 - fix phpdbg with libedit https://bugs.php.net/67499
 - add workaround for unserialize/mock issue from 5.4/5.5
diff --git a/sources b/sources
index 8fd2f5c..2f366b0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-634264f034944644e2192fba206d5ffa  php-5.6.0RC1-strip.tar.xz
+fe60813837a1159c01e1ea5996c5060a  php-5.6.0RC2-strip.tar.xz


More information about the scm-commits mailing list