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

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

      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.

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

              Created:
              Updated:
              Resolved: