]> git.pld-linux.org Git - packages/php-pecl-igbinary.git/commitdiff
fix call by reference fatal with php5.4+ auto/th/php-pecl-igbinary-1.1.1-8
authorElan Ruusamäe <glen@delfi.ee>
Thu, 12 Jun 2014 13:22:51 +0000 (16:22 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 12 Jun 2014 13:22:51 +0000 (16:22 +0300)
call-by-reference.patch [new file with mode: 0644]
php-pecl-igbinary.spec

diff --git a/call-by-reference.patch b/call-by-reference.patch
new file mode 100644 (file)
index 0000000..70500b2
--- /dev/null
@@ -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);
+ /*
index e6d459ccd5c671f7d143b95ce711df66ced23196..594dcf5241530923d2c75f3a28a543936998d083 100644 (file)
@@ -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
This page took 0.077375 seconds and 4 git commands to generate.