PHP 7 compatibility - fixing class constructors.
Authored by: hansfn 2016-07-28
Parent: [r4475]
Child: [r4477]