Public bug reported:

On upgrade I get these errors in error.log

PHP Deprecated:  Methods with the same name as their class will not be
constructors in a future version of PHP; XMLDBpostgres has a deprecated
constructor in /home/robertl/code/mahara-
devel/mahara/htdocs/lib/xmldb/classes/generators/postgres/postgres.class.php
on line 31

We need to update the lib/xmldb/ files so classes are constructed
correctly

eg

Replace

public function XMLDBpostgres($host, $queryPort)

with

public function __construct($host, $queryPort)

** Affects: mahara
     Importance: Medium
         Status: Confirmed

** Changed in: mahara
    Milestone: None => 17.04.0

** Changed in: mahara
   Importance: Undecided => Medium

** Changed in: mahara
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1677063

Title:
  PHP7 deprecated constructor for xmldb

Status in Mahara:
  Confirmed

Bug description:
  On upgrade I get these errors in error.log

  PHP Deprecated:  Methods with the same name as their class will not be
  constructors in a future version of PHP; XMLDBpostgres has a
  deprecated constructor in /home/robertl/code/mahara-
  devel/mahara/htdocs/lib/xmldb/classes/generators/postgres/postgres.class.php
  on line 31

  We need to update the lib/xmldb/ files so classes are constructed
  correctly

  eg

  Replace

  public function XMLDBpostgres($host, $queryPort)

  with

  public function __construct($host, $queryPort)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1677063/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to