Ignore:
Timestamp:
12/18/12 16:15:29 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Correcoes para Performance: Function Within Loop Declaration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/library/Net/Sieve.php

    r7655 r7673  
    929929        $data = preg_split('/\r?\n/', $this->_toUpper($data), -1, PREG_SPLIT_NO_EMPTY); 
    930930 
    931         for ($i = 0; $i < count($data); ++$i) { 
     931        $data_count = count($data); 
     932        for ($i = 0; $i < $data_count; ++$i) { 
    932933            if (!preg_match('/^"([A-Z]+)"( "(.*)")?$/', $data[$i], $matches)) { 
    933934                continue; 
Note: See TracChangeset for help on using the changeset viewer.