Исправить ошибку связанную с версией php
Выходит ошибка Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/www-root/data/www/yapupkin.ru/framework/libs/vendor/cssmin/CssMin.php on line 2222
Нужно поправить, до этого была ошибка
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/taradajk/news.zp.ua/www/framework/libs/vendor/DklabCache/Zend/Cache/Backend.php on line 68
исправлял вот так
В файле framework/libs/vendor/DklabCache/Zend/Cache/Backend.php нужно заменить строки:
while (list($name, $value) = each($options)) {
на
foreach ($options as $name=>$value) {
А также:
while (list($name, $value) = each($directives)) {
на
foreach ($directives as $key=>$value) {