[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#825542: php-arc: FTBFS: Tests: 40, Assertions: 87, Errors: 5.



Package: php-arc
Version: 2.2.5-1
Followup-For: Bug #825542
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu yakkety ubuntu-patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

  * debian/patches/pass_variable_by_reference.patch: PHP7 is strict
    about passing by reference.  Closes LP: #1631190.


Thanks for considering the patch.

diff -Nru php-arc-2.2.5/debian/patches/pass_variable_by_reference.patch php-arc-2.2.5/debian/patches/pass_variable_by_reference.patch
--- php-arc-2.2.5/debian/patches/pass_variable_by_reference.patch	1969-12-31 16:00:00.000000000 -0800
+++ php-arc-2.2.5/debian/patches/pass_variable_by_reference.patch	2016-10-06 15:53:02.000000000 -0700
@@ -0,0 +1,16 @@
+Description: PHP7 is strict about passing by reference
+Author: Nishanth Aravamudan <nish.aravamudan@canonical.com>
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1631190
+
+--- php-arc-2.2.5.orig/tests/unit/ARC2_ClassTest.php
++++ php-arc-2.2.5/tests/unit/ARC2_ClassTest.php
+@@ -6,7 +6,8 @@ require_once ARC2_DIR . '/ARC2_Class.php
+ class ARC2_ClassTest extends PHPUnit_Framework_TestCase {
+ 
+     public function setUp() {
+-         $this->arc2 = new ARC2_Class(array(), new stdClass);
++         $obj = new stdClass;
++         $this->arc2 = new ARC2_Class(array(), $obj);
+     }
+ 
+     public function testCamelCase() {
diff -Nru php-arc-2.2.5/debian/patches/series php-arc-2.2.5/debian/patches/series
--- php-arc-2.2.5/debian/patches/series	1969-12-31 16:00:00.000000000 -0800
+++ php-arc-2.2.5/debian/patches/series	2016-10-06 15:52:36.000000000 -0700
@@ -0,0 +1 @@
+pass_variable_by_reference.patch


-- System Information:
Debian Release: stretch/sid
  APT prefers yakkety
  APT policy: (500, 'yakkety'), (400, 'yakkety-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-17-generic (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- 
Nishanth Aravamudan
Ubuntu Server
Canonical Ltd


Reply to: