From owner-freebsd-ports-bugs@freebsd.org Wed Jan 18 13:15:15 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9032ECB696B for ; Wed, 18 Jan 2017 13:15:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7536C1F85 for ; Wed, 18 Jan 2017 13:15:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0IDFE94015474 for ; Wed, 18 Jan 2017 13:15:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216225] net-mgmt/cacti does not work with php70 Date: Wed, 18 Jan 2017 13:15:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marko.cupac@mimar.rs X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2017 13:15:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216225 --- Comment #1 from Marko Cupa=C4=87 --- 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.=