Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jan 2017 13:15:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 216225] net-mgmt/cacti does not work with php70
Message-ID:  <bug-216225-13-dvycpSp4XC@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-216225-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-216225-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216225

--- Comment #1 from Marko Cupa=C4=87 <marko.cupac@mimar.rs> ---
Created attachment 179033
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179033&action=
=3Dedit
patches removing "&" from "=3D& new"

First of all, a disclaimer: My php skills are probably worse than those of a
elementary school pupil.

That being said, I guess I made it work (for me). I solved second problem w=
ith
mysql connect just by replacing 'mysql' with 'mysqli' in include/config.php.

Now, as for the first problem, I found all the files containing offending "=
=3D&
new":

pacija@apache3:/usr/local/share/cacti % grep -rnw . -e "=3D& new"
./lib/adodb/adodb-lib.inc.php:537:              $recordSet =3D& new
$rsclass(-1,$zthis->fetchMode);
./lib/adodb/adodb-pear.inc.php:111:             if (!is_object($obj)) $obj =
=3D&
new PEAR_Error('Unknown Database Driver: '.$dsninfo['phptype'],-1);
./lib/adodb/adodb-pear.inc.php:157:                     $obj =3D& new
PEAR_Error('Unknown Database Driver: '.$dsninfo['phptype'],-1);
./lib/adodb/adodb-xmlschema.inc.php:353:                $this->indexes[$nam=
e]
=3D& new dbIndex( $this, $attributes );
./lib/adodb/adodb-xmlschema.inc.php:365:                        $this->data=
 =3D&
new dbData( $this, $attributes );
./lib/adodb/adodb.inc.php:866:                  $rs =3D& new
ADORecordSet_empty();
./lib/adodb/adodb.inc.php:872:          $rs =3D& new
$rsclass($this->_queryID,$this->fetchMode);
./lib/adodb/adodb.inc.php:1183:         $rs2 =3D& new $arrayClass();
./lib/adodb/adodb.inc.php:1961:                         $fld =3D& new
ADOFieldObject();
./lib/adodb/adodb.inc.php:3027:                 $this->_obj =3D& new
ADOFetchObj();
./lib/adodb/adodb.inc.php:3592:                 $obj =3D& new $cls();
./lib/adodb/adodb.inc.php:3667:         $perf =3D& new $class($conn);
./lib/adodb/adodb.inc.php:3687:         $dict =3D& new $class();
./lib/adodb/drivers/adodb-odbc.inc.php:425:             $rs =3D& new
ADORecordSet_odbc($qid);
./lib/adodb/adodb-csvlib.inc.php:72:            $rs =3D& new
ADORecordSet_array();
./lib/adodb/adodb-csvlib.inc.php:129:                                   $rs=
 =3D&
new ADORecordSet($val=3Dtrue);
./lib/adodb/adodb-csvlib.inc.php:222:                           $fld =3D& n=
ew
ADOFieldObject();
./lib/adodb/adodb-csvlib.inc.php:250:           $rs =3D& new
ADORecordSet_array();

...and removed "&" from them.

Patches are in shar archive, i haven't tested creating new port revision.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216225-13-dvycpSp4XC>