MDL-51784 general: Adding missing php4 style constructors

Adding them to maintain backwards compatibility.
This commit is contained in:
David Monllao
2015-12-11 14:56:31 +08:00
parent 345f365555
commit 0a44e7d8cc
18 changed files with 176 additions and 5 deletions
+7
View File
@@ -125,6 +125,13 @@ class EvalMath {
$this->allowimplicitmultiplication = $allowimplicitmultiplication;
}
/**
* Old syntax of class constructor. Deprecated in PHP7.
*/
public function EvalMath($allowconstants = false, $allowimplicitmultiplication = false) {
self::__construct($allowconstants, $allowimplicitmultiplication);
}
function e($expr) {
return $this->evaluate($expr);
}