[packages/php-pecl-igbinary] fix call by reference fatal with php5.4+

glen glen at pld-linux.org
Thu Jun 12 15:23:18 CEST 2014


commit 267037fea619f46d4bb21a4bcffbf0dad62b1cdb
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jun 12 16:22:51 2014 +0300

    fix call by reference fatal with php5.4+

 call-by-reference.patch | 12 ++++++++++++
 php-pecl-igbinary.spec  |  4 +++-
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/php-pecl-igbinary.spec b/php-pecl-igbinary.spec
index e6d459c..594dcf5 100644
--- a/php-pecl-igbinary.spec
+++ b/php-pecl-igbinary.spec
@@ -7,7 +7,7 @@
 Summary:	Replacement for the standard PHP serializer
 Name:		%{php_name}-pecl-%{modname}
 Version:	1.1.1
-Release:	7
+Release:	8
 License:	BSD
 Group:		Libraries
 Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
@@ -18,6 +18,7 @@ Source1:	https://github.com/igbinary/igbinary/tarball/%{version}/tests?/%{modnam
 # Source1-md5:	b171ba8b230f6de3e7095500515fc6bb
 Source2:	%{modname}.ini
 Patch0:		apc-modname.patch
+Patch1:		call-by-reference.patch
 URL:		http://pecl.php.net/package/igbinary
 %{?with_tests:BuildRequires:	%{php_name}-cli}
 BuildRequires:	%{php_name}-devel >= 4:5.2.0
@@ -55,6 +56,7 @@ These are the files needed to compile programs using Igbinary
 mv %{modname}-%{version}/* .
 mv igbinary-igbinary-bef0aca/tests .
 %patch0 -p1
+%patch1 -p1
 
 # broken
 rm tests/igbinary_unserialize_v1_compatible.phpt
diff --git a/call-by-reference.patch b/call-by-reference.patch
new file mode 100644
index 0000000..70500b2
--- /dev/null
+++ b/call-by-reference.patch
@@ -0,0 +1,12 @@
+PHP Fatal error:  Call-time pass-by-reference has been removed
+--- php55-pecl-igbinary-1.1.1/tests/igbinary_024.phpt	2011-01-17 16:24:32.000000000 +0200
++++ php55-pecl-igbinary-1.1.1/tests/igbinary_024.phpt	2014-06-12 16:02:44.580654091 +0300
+@@ -81,7 +81,7 @@
+ test('objectrecarr', $o3, false);
+ 
+ $o4 = new Obj4(100);
+-$o4->set(&$o4);
++$o4->set($o4);
+ test('objectselfrec', $o4, true);
+ 
+ /*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-igbinary.git/commitdiff/267037fea619f46d4bb21a4bcffbf0dad62b1cdb



More information about the pld-cvs-commit mailing list