Тема: Win 10 + Appache 2.4 + SAM (SamPHPweb) + PHP 7 + MySQL
Добрый день.
Может кто подскажет (имеет опыт ликвидации проблемы).
После совмещения всего этого набора (Win 10 + Appache 2.4 + SAM (SamPHPweb) + PHP 7 + MySQL) при загрузке странички plaing.php выдаёт такую строчку:
Parse error: Invalid numeric literal in ...\library\Common\form.php on line 51
Прочитав мануал на PHP 7 убрал из файла \library\Common\form.php нули в коде:
function DaysInMonth($m, $y = '') {
if (empty($y)) {
$y = date('Y');
}
$m = (int) $m;
$days[01] = 31;
$days[02] = 28;
$days[03] = 31;
$days[04] = 30;
$days[05] = 31;
$days[06] = 30;
$days[07] = 31;
--> $days[8] = 31;
--> $days[9] = 30;
$days[10] = 31;
$days[11] = 30;
$days[12] = 31;
return $days[$m];
}
В итоге выскочила ошибка:
Notice: Only variables should be passed by reference in ...\library\Common\xml.php on line 25
Notice: Only variables should be passed by reference in ...\library\Common\xml.php on line 25
Notice: Undefined offset: 0 in ...\library\Common\xml.php on line 100
Warning: reset() expects parameter 1 to be array, null given in ...\library\Common\xml.php on line 76
Warning: Variable passed to each() is not an array or object in ...\library\Common\xml.php on line 77
Notice: Undefined variable: leaf in ...\Common\xml.php on line 121
Notice: Undefined index: CONFIG in ...\library\Common\Database.php on line 70
Warning: Variable passed to each() is not an array or object in ...\library\Common\xml.php on line 238
Oops! Something went wrong...
Error: Unsupported driver:
SAM currently supports:
Firebird
ADO
MSSQL
Я не большой специалист в php, по сему большая просьба помогите разобраться.
Спасибо.
Отредактировано wwc (30-03-2017 13:19:59)