public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Remi Collet <remi@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/php] private-php86: - Update to 5.5.10 http://www.php.net/ChangeLog-5.php#5.5.10
Date: Fri, 27 Nov 2026 07:26:31 GMT [thread overview]
Message-ID: <179576439142.1.3094595785637731255.rpms-php-ad19be4fcd78@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/php
Branch : private-php86
Commit : ad19be4fcd78a0868cb5b43eb402827191a0b263
Author : Remi Collet <remi@fedoraproject.org>
Date : 2014-03-06T07:21:15+01:00
Stats : +76/-176 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/php/c/ad19be4fcd78a0868cb5b43eb402827191a0b263?branch=private-php86
Log:
- Update to 5.5.10 http://www.php.net/ChangeLog-5.php#5.5.10
- php-fpm should own /var/lib/php/session and wsdlcache
- fix pcre test results with libpcre < 8.34
---
diff --git a/.gitignore b/.gitignore
index b983ad2..655b915 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,4 @@ php-5.4.*.bz2
/php-5.5.7-strip.tar.xz
/php-5.5.8-strip.tar.xz
/php-5.5.9-strip.tar.xz
+/php-5.5.10-strip.tar.xz
diff --git a/php-5.5.10-pcre834.patch b/php-5.5.10-pcre834.patch
new file mode 100644
index 0000000..636d60b
--- /dev/null
+++ b/php-5.5.10-pcre834.patch
@@ -0,0 +1,55 @@
+From ab32d36ec65c17b3f890d488d30eb3a8ba012812 Mon Sep 17 00:00:00 2001
+From: Anatol Belski <ab@php.net>
+Date: Tue, 4 Feb 2014 10:34:11 +0100
+Subject: [PATCH] pcre tests go with 8.34 upgrade
+
+---
+ ext/pcre/tests/bug37911.phpt | 2 +-
+ ext/pcre/tests/grep2.phpt | 10 ++++++++--
+ ext/pcre/tests/match_flags3.phpt | 2 +-
+ 3 files changed, 10 insertions(+), 4 deletions(-)
+
+diff --git a/ext/pcre/tests/bug37911.phpt b/ext/pcre/tests/bug37911.phpt
+index f788119..2b7481a 100644
+--- a/ext/pcre/tests/bug37911.phpt
++++ b/ext/pcre/tests/bug37911.phpt
+@@ -37,5 +37,5 @@ array(3) {
+ string(4) "blub"
+ }
+
+-Warning: preg_replace_callback(): Numeric named subpatterns are not allowed in %sbug37911.php on line 14
++Warning: preg_replace_callback(): Compilation failed: group name must start with a non-digit at offset %d in %sbug37911.php on line %d
+ NULL
+diff --git a/ext/pcre/tests/grep2.phpt b/ext/pcre/tests/grep2.phpt
+index 0cf8d4a..1a8476c 100644
+--- a/ext/pcre/tests/grep2.phpt
++++ b/ext/pcre/tests/grep2.phpt
+@@ -40,6 +40,12 @@ array(1) {
+ string(1) "1"
+ }
+ bool(true)
+-array(0) {
++array(3) {
++ [5]=>
++ string(1) "a"
++ ["xyz"]=>
++ string(2) "q6"
++ [6]=>
++ string(3) "h20"
+ }
+-bool(true)
++bool(false)
+diff --git a/ext/pcre/tests/match_flags3.phpt b/ext/pcre/tests/match_flags3.phpt
+index f22205e..84deb0b 100644
+--- a/ext/pcre/tests/match_flags3.phpt
++++ b/ext/pcre/tests/match_flags3.phpt
+@@ -42,5 +42,5 @@ array(1) {
+ }
+ }
+
+-Warning: preg_match(): Numeric named subpatterns are not allowed in %smatch_flags3.php on line 14
++Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset %d in %smatch_flags3.php on line %d
+ bool(false)
+--
+1.8.4.3
+
diff --git a/php-bug66731.patch b/php-bug66731.patch
deleted file mode 100644
index 361dc64..0000000
--- a/php-bug66731.patch
+++ /dev/null
@@ -1,168 +0,0 @@
-From 89f864c547014646e71862df3664e3ff33d7143d Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@php.net>
-Date: Tue, 18 Feb 2014 13:54:33 +0100
-Subject: [PATCH] Fixed Bug #66731 file: infinite recursion
-
-Upstream commit (available in file-5.17)
-
-https://github.com/glensc/file/commit/3c081560c23f20b2985c285338b52c7aae9fdb0f
-https://github.com/glensc/file/commit/cc9e74dfeca5265ad725acc926ef0b8d2a18ee70
----
- ext/fileinfo/libmagic/ascmagic.c | 2 +-
- ext/fileinfo/libmagic/file.h | 2 +-
- ext/fileinfo/libmagic/funcs.c | 2 +-
- ext/fileinfo/libmagic/softmagic.c | 8 ++++---
- ext/fileinfo/tests/cve-2014-1943.phpt | 39 +++++++++++++++++++++++++++++++++++
- 5 files changed, 47 insertions(+), 6 deletions(-)
- create mode 100644 ext/fileinfo/tests/cve-2014-1943.phpt
-
-diff --git a/ext/fileinfo/libmagic/ascmagic.c b/ext/fileinfo/libmagic/ascmagic.c
-index 2090097..c0041df 100644
---- a/ext/fileinfo/libmagic/ascmagic.c
-+++ b/ext/fileinfo/libmagic/ascmagic.c
-@@ -147,7 +147,7 @@ file_ascmagic_with_encoding(struct magic_set *ms, const unsigned char *buf,
- == NULL)
- goto done;
- if ((rv = file_softmagic(ms, utf8_buf,
-- (size_t)(utf8_end - utf8_buf), TEXTTEST, text)) == 0)
-+ (size_t)(utf8_end - utf8_buf), 0, TEXTTEST, text)) == 0)
- rv = -1;
- }
-
-diff --git a/ext/fileinfo/libmagic/file.h b/ext/fileinfo/libmagic/file.h
-index 19b6872..ab5082d 100644
---- a/ext/fileinfo/libmagic/file.h
-+++ b/ext/fileinfo/libmagic/file.h
-@@ -437,7 +437,7 @@ protected int file_encoding(struct magic_set *, const unsigned char *, size_t,
- unichar **, size_t *, const char **, const char **, const char **);
- protected int file_is_tar(struct magic_set *, const unsigned char *, size_t);
- protected int file_softmagic(struct magic_set *, const unsigned char *, size_t,
-- int, int);
-+ size_t, int, int);
- protected int file_apprentice(struct magic_set *, const char *, int);
- protected int file_magicfind(struct magic_set *, const char *, struct mlist *);
- protected uint64_t file_signextend(struct magic_set *, struct magic *,
-diff --git a/ext/fileinfo/libmagic/funcs.c b/ext/fileinfo/libmagic/funcs.c
-index 9c0d2bd..011ca42 100644
---- a/ext/fileinfo/libmagic/funcs.c
-+++ b/ext/fileinfo/libmagic/funcs.c
-@@ -235,7 +235,7 @@ file_buffer(struct magic_set *ms, php_stream *stream, const char *inname, const
-
- /* try soft magic tests */
- if ((ms->flags & MAGIC_NO_CHECK_SOFT) == 0)
-- if ((m = file_softmagic(ms, ubuf, nb, BINTEST,
-+ if ((m = file_softmagic(ms, ubuf, nb, 0, BINTEST,
- looks_text)) != 0) {
- if ((ms->flags & MAGIC_DEBUG) != 0)
- (void)fprintf(stderr, "softmagic %d\n", m);
-diff --git a/ext/fileinfo/libmagic/softmagic.c b/ext/fileinfo/libmagic/softmagic.c
-index 0671fa9..7c5f628 100644
---- a/ext/fileinfo/libmagic/softmagic.c
-+++ b/ext/fileinfo/libmagic/softmagic.c
-@@ -74,13 +74,13 @@ private void cvt_64(union VALUETYPE *, const struct magic *);
- /*ARGSUSED1*/ /* nbytes passed for regularity, maybe need later */
- protected int
- file_softmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes,
-- int mode, int text)
-+ size_t level, int mode, int text)
- {
- struct mlist *ml;
- int rv, printed_something = 0, need_separator = 0;
- for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next)
- if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, 0, mode,
-- text, 0, 0, &printed_something, &need_separator,
-+ text, 0, level, &printed_something, &need_separator,
- NULL)) != 0)
- return rv;
-
-@@ -1680,6 +1680,8 @@ mget(struct magic_set *ms, const unsigned char *s, struct magic *m,
- break;
-
- case FILE_INDIRECT:
-+ if (offset == 0)
-+ return 0;
- if (nbytes < offset)
- return 0;
- sbuf = ms->o.buf;
-@@ -1687,7 +1689,7 @@ mget(struct magic_set *ms, const unsigned char *s, struct magic *m,
- ms->o.buf = NULL;
- ms->offset = 0;
- rv = file_softmagic(ms, s + offset, nbytes - offset,
-- BINTEST, text);
-+ recursion_level, BINTEST, text);
- if ((ms->flags & MAGIC_DEBUG) != 0)
- fprintf(stderr, "indirect @offs=%u[%d]\n", offset, rv);
- rbuf = ms->o.buf;
-diff --git a/ext/fileinfo/tests/cve-2014-1943.phpt b/ext/fileinfo/tests/cve-2014-1943.phpt
-new file mode 100644
-index 0000000..b2e9c17
---- /dev/null
-+++ b/ext/fileinfo/tests/cve-2014-1943.phpt
-@@ -0,0 +1,39 @@
-+--TEST--
-+Bug #66731: file: infinite recursion
-+--SKIPIF--
-+<?php
-+if (!class_exists('finfo'))
-+ die('skip no fileinfo extension');
-+--FILE--
-+<?php
-+$fd = __DIR__.'/cve-2014-1943.data';
-+$fm = __DIR__.'/cve-2014-1943.magic';
-+
-+$a = "\105\122\000\000\000\000\000";
-+$b = str_repeat("\001", 250000);
-+$m = "0 byte x\n".
-+ ">(1.b) indirect x\n";
-+
-+file_put_contents($fd, $a);
-+$fi = finfo_open(FILEINFO_NONE);
-+var_dump(finfo_file($fi, $fd));
-+finfo_close($fi);
-+
-+file_put_contents($fd, $b);
-+file_put_contents($fm, $m);
-+$fi = finfo_open(FILEINFO_NONE, $fm);
-+var_dump(finfo_file($fi, $fd));
-+finfo_close($fi);
-+?>
-+Done
-+--CLEAN--
-+<?php
-+@unlink(__DIR__.'/cve-2014-1943.data');
-+@unlink(__DIR__.'/cve-2014-1943.magic');
-+?>
-+--EXPECTF--
-+string(%d) "%s"
-+
-+Warning: finfo_file(): Failed identify data 0:(null) in %s on line %d
-+bool(false)
-+Done
---
-1.8.4.3
-
-From bd8cd98d6d70ac50dc1de350970ed9ea479895db Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@php.net>
-Date: Tue, 18 Feb 2014 13:57:53 +0100
-Subject: [PATCH] Set fileinfo version to 1.0.5 (as in php 5.4, no diff)
-
----
- ext/fileinfo/php_fileinfo.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/ext/fileinfo/php_fileinfo.h b/ext/fileinfo/php_fileinfo.h
-index d8dec12..354ec7b 100644
---- a/ext/fileinfo/php_fileinfo.h
-+++ b/ext/fileinfo/php_fileinfo.h
-@@ -24,7 +24,7 @@
- extern zend_module_entry fileinfo_module_entry;
- #define phpext_fileinfo_ptr &fileinfo_module_entry
-
--#define PHP_FILEINFO_VERSION "1.0.5-dev"
-+#define PHP_FILEINFO_VERSION "1.0.5"
-
- #ifdef PHP_WIN32
- #define PHP_FILEINFO_API __declspec(dllexport)
---
-1.8.4.3
-
diff --git a/php.spec b/php.spec
index dcfcfcd..34faac6 100644
--- a/php.spec
+++ b/php.spec
@@ -68,8 +68,8 @@
Summary: PHP scripting language for creating dynamic web sites
Name: php
-Version: 5.5.9
-Release: 2%{?dist}
+Version: 5.5.10
+Release: 1%{?dist}
# All files licensed under PHP version 3.01, except
# Zend is licensed under Zend
# TSRM is licensed under BSD
@@ -120,12 +120,13 @@ Patch46: php-5.4.9-fixheader.patch
# drop "Configure command" from phpinfo output
Patch47: php-5.4.9-phpinfo.patch
-# Upstream fixes
-Patch100: php-bug66731.patch
+# Upstream fixes (100+)
-# Security fixes
+# Security fixes (200+)
-# Fixes for tests
+# Fixes for tests (300+)
+# Revert changes for pcre 8.34
+Patch301: php-5.5.10-pcre834.patch
BuildRequires: bzip2-devel, curl-devel >= 7.9
@@ -727,7 +728,10 @@ support for using the enchant library to PHP.
%patch46 -p1 -b .fixheader
%patch47 -p1 -b .phpinfo
-%patch100 -p1 -b .bug66731
+%if 0%{?fedora} < 21
+# Only revert when system libpcre < 8.34
+%patch301 -p1 -R -b .pcre84
+%endif
# Prevent %%doc confusion over LICENSE files
@@ -1462,6 +1466,8 @@ exit 0
%files fpm
%doc php-fpm.conf.default
%doc fpm_LICENSE
+%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session
+%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/wsdlcache
%config(noreplace) %{_sysconfdir}/php-fpm.conf
%config(noreplace) %{_sysconfdir}/php-fpm.d/www.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/php-fpm
@@ -1538,6 +1544,12 @@ exit 0
%changelog
+* Thu Mar 6 2014 Remi Collet <rcollet@redhat.com> 5.5.10-1
+- Update to 5.5.10
+ http://www.php.net/ChangeLog-5.php#5.5.10
+- php-fpm should own /var/lib/php/session and wsdlcache
+- fix pcre test results with libpcre < 8.34
+
* Tue Feb 18 2014 Remi Collet <rcollet@redhat.com> 5.5.9-2
- upstream patch for https://bugs.php.net/66731
diff --git a/sources b/sources
index b70cd9c..4339a5f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ea0c9ea27376af839c9379a40e141f9c php-5.5.9-strip.tar.xz
+8eed3c7db26db6b4ad5d2b51681f4954 php-5.5.10-strip.tar.xz
reply other threads:[~2026-11-27 7:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179576439142.1.3094595785637731255.rpms-php-ad19be4fcd78@fedoraproject.org \
--to=remi@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox