From 1d65298f84134736949d07dfdb958cd64dacaf67 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 20 Jan 2014 14:53:44 +0100 Subject: php 5.5: test build for https://bugs.php.net/66412 --- php-5.5.8-bug66412.patch | 15 +++++++++++++++ php55.spec | 7 ++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 php-5.5.8-bug66412.patch diff --git a/php-5.5.8-bug66412.patch b/php-5.5.8-bug66412.patch new file mode 100644 index 0000000..2018acc --- /dev/null +++ b/php-5.5.8-bug66412.patch @@ -0,0 +1,15 @@ +diff -up ext/readline/readline.c.old ext/readline/readline.c +--- ext/readline/readline.c.old 2014-01-20 08:19:13.009830341 +0100 ++++ ext/readline/readline.c 2014-01-20 08:20:56.463158818 +0100 +@@ -354,6 +354,11 @@ PHP_FUNCTION(readline_clear_history) + return; + } + ++#if HAVE_LIBEDIT ++ /* clear_history is the only function where rl_initialize ++ is not call to ensure correct allocation */ ++ using_history(); ++#endif + clear_history(); + + RETURN_TRUE; diff --git a/php55.spec b/php55.spec index 1069a40..d86150a 100644 --- a/php55.spec +++ b/php55.spec @@ -108,7 +108,7 @@ Version: 5.5.8 %if 0%{?snapdate:1}%{?rcver:1} Release: 0.2.%{?snapdate}%{?rcver}%{?dist} %else -Release: 1%{?dist} +Release: 2%{?dist} %endif # All files licensed under PHP version 3.01, except # Zend is licensed under Zend @@ -175,6 +175,7 @@ Patch91: php-5.3.7-oci8conf.patch # Fixes for tests # WIP +Patch100: php-5.5.8-bug66412.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -884,6 +885,7 @@ rm -rf ext/json # security patches # WIP patch +%patch100 -p0 -b .bug66412 # Prevent %%doc confusion over LICENSE files cp Zend/LICENSE Zend/ZEND_LICENSE @@ -1858,6 +1860,9 @@ fi %changelog +* Mon Jan 20 2014 Remi Collet 5.5.8-2 +- test build for https://bugs.php.net/66412 + * Wed Jan 8 2014 Remi Collet 5.5.8-1 - update to 5.5.8 - drop conflicts with other opcode caches as both can -- cgit