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

dbConditionInt function should use foreach loop insted of cursor operations to not copy input array

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.1.0
    • API (A)
    • None

    Description

      function dbConditionInt($fieldName, array $values, $notIn = false) {

      to iterate over $values array foreach statement should be used, because current implementation with cursor operations makes copy of $values array which uses more memory and processing time.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tomtom Toms (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: