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

Bug#825542: Fix from Ubuntu for php-arc FTBFS



Control: tags -1 patch

The fix I found in Ubuntu for this bug is attached.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

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() {

Reply to: