Loading...
PHP/MySQL | Помогите исправить варнинги
Вот собственно что выдает в логах:

PHP Strict Standards: Declaration of Asido_Driver_GD::__rotate() should be compatible with Asido_Driver::__rotate(&$tmp, $angle, $color) in /var/www/gal964/data/www/site.ru/engine/classes/class.driver.gd.php on line 616, referer: http://site.ru/settings/avatar/
PHP Strict Standards: Declaration of Asido_Driver_GD::__canvas() should be compatible with Asido_Driver::__canvas($width, $height, $color) in /var/www/gal964/data/www/site.ru/engine/classes/class.driver.gd.php on line 616, referer: http://site.ru/settings/avatar/

Вот эти функции:

<?php
function __rotate(&$tmp, $angle, &$color) {

// skip full loops
//
if (($angle % 360) == 0) {
return true;
}

list($r, $g, $b) = $color->get();
$rotate_color = imageColorAllocate($tmp->target, $r, $g, $b);

if ($t = imageRotate($tmp->target, $angle * -1, $rotate_color)) {
imageDestroy($tmp->target);
$tmp->target = $t;

$tmp->image_width = imageSX($tmp->target);
$tmp->image_height = imageSY($tmp->target);

return true;
}

return false;
}
?>

<?php
function __canvas($width, $height, &$color) {

$t = new Asido_TMP;
$t->target = imageCreateTrueColor($width, $height);

list($r, $g, $b) = $color->get();
imageFill($t->target, 1, 1,
imageColorAllocate($t->target, $r, $g, $b)
);
$t->image_width = $width;
$t->image_height = $height;

return $t;
}
?>

Строка 616:

<?php
}
?>
616 строку смотри там ошибка должна быть
<?php
function __rotate($tmp, $angle, $color)
Зачем перед переменными ставить закорючку?
Пробуй вот так
________
посл. ред. 14.02.2016 в 09:27; всего 2 раз(а); by cara
Онлайн: 2
Время:
Gen. 0.0555
(c) Bym.Guru 2010-2025