[php-pecl-apc] fix for http://pecl.php.net/bugs/22687
Remi Collet
remi at fedoraproject.org
Sat May 14 09:43:45 UTC 2011
commit 7708524095ceaa1fa354f568253ece5fcf0e4d2f
Author: remi <fedora at famillecollet.com>
Date: Sat May 14 11:43:31 2011 +0200
fix for http://pecl.php.net/bugs/22687
APC.patch | 11 +++++++++++
php-pecl-apc.spec | 10 +++++++++-
2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/APC.patch b/APC.patch
new file mode 100644
index 0000000..5f90b9c
--- /dev/null
+++ b/APC.patch
@@ -0,0 +1,11 @@
+--- APC-3.1.8/apc_main.c 2011-05-02 20:33:03.000000000 +0200
++++ APC-3.1.8/apc_main.c 2011-05-14 11:28:38.432802232 +0200
+@@ -563,8 +563,6 @@
+ if (h->type != ZEND_HANDLE_FILENAME) {
+ zend_llist_add_element(&CG(open_files), h);
+ }
+-
+- op_array->filename = filename;
+ return op_array;
+ }
+ if(APCG(report_autofilter)) {
diff --git a/php-pecl-apc.spec b/php-pecl-apc.spec
index e75abf6..861c33c 100644
--- a/php-pecl-apc.spec
+++ b/php-pecl-apc.spec
@@ -7,12 +7,15 @@
Summary: APC caches and optimizes PHP intermediate code
Name: php-pecl-apc
Version: 3.1.8
-Release: 1%{?dist}
+Release: 2%{?dist}
License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/APC
Source: http://pecl.php.net/get/APC-%{version}.tgz
+# Fix for http://pecl.php.net/bugs/22687
+Patch0: APC.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Conflicts: php-mmcache php-eaccelerator
BuildRequires: php-devel >= 5.1.0, httpd-devel, php-pear, pcre-devel
@@ -64,6 +67,8 @@ These are the files needed to compile programs using APC serializer.
# Check than upstream version is correct, http://pecl.php.net/bugs/19590
grep '"%{version}"' APC-%{version}/php_apc.h || exit 1
+%patch0 -p0 -b .orig
+
%build
cd APC-%{version}
@@ -201,6 +206,9 @@ fi
%changelog
+* Sat May 14 2011 Remi Collet <Fedora at FamilleCollet.com> - 3.1.8-2
+- fix for http://pecl.php.net/bugs/22687
+
* Tue May 3 2011 Remi Collet <Fedora at FamilleCollet.com> - 3.1.8-1
- update to 3.1.8 (bugfix, stable)
More information about the scm-commits
mailing list