Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-8029

Cant display maps with HHVM

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.3.0
    • Component/s: Frontend (F)
    • Labels:
    • Environment:
      Ubuntu 12.04, nginx, HHVM 3.0.1

      Description

      include/classes/sysmaps/CCanvas.php
      line 71, 72

      imagestring($this->canvas, 0, $this->width - 120, $this->height - 12, $date, $this->getColor('gray'));
      imagestringup($this->canvas, 0, $this->width - 10, $this->height - 50, ZABBIX_HOMEPAGE, $this->getColor('gray'));

      Second parameter (font) shoudn't be zero for both lines.

      As php manual states from http://www.php.net/manual/en/function.imagestring.php

      bool imagestring ( resource $image , int $font , int $x , int $y , string $string , int $color )

      font
      Can be 1, 2, 3, 4, 5 for built-in fonts in latin2 encoding (where higher numbers corresponding to larger fonts) or any of your own font identifiers registered with imageloadfont().

      It works with native PHP, but does not with HHVM (http://hhvm.com/)

      So just replace 0 -> 1

        Attachments

          Activity

            People

            Assignee:
            iivs Ivo Kurzemnieks
            Reporter:
            elderone Taavi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: