Ignore:
Timestamp:
12/14/12 14:30:35 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Melhorias de performance no codigo do Expresso.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/library/mime/mimePart.php

    r6057 r7655  
    283283            $encoded['body'] = '';  
    284284 
    285             for ($i = 0; $i < count($this->_subparts); $i++) { 
     285            for ($i = 0; $i < count($this->_subparts); ++$i) { 
    286286                $encoded['body'] .= '--' . $boundary . $eol; 
    287287                $tmp = $this->_subparts[$i]->encode(); 
     
    393393 
    394394        if (count($this->_subparts)) { 
    395             for ($i = 0; $i < count($this->_subparts); $i++) { 
     395            for ($i = 0; $i < count($this->_subparts); ++$i) { 
    396396                fwrite($fh, $f_eol . '--' . $boundary . $eol); 
    397397                $res = $this->_subparts[$i]->_encodePartToFile($fh); 
     
    581581                $char = $line[$i]; 
    582582                $dec  = ord($char); 
    583                 $i++; 
     583                ++$i; 
    584584 
    585585                if (($dec == 32) && (!isset($line[$i]))) { 
     
    688688                $value = ''; 
    689689            } 
    690             $headCount++; 
     690            ++$headCount; 
    691691        } 
    692692 
     
    921921        $strlen = strlen($string); 
    922922 
    923         for ($q=$p=$i=0; $i < $strlen; $i++) { 
     923        for ($q=$p=$i=0; $i < $strlen; ++$i) { 
    924924            if ($string[$i] == "\"" 
    925925                && (empty($string[$i-1]) || $string[$i-1] != "\\") 
     
    11031103            $prev  = ''; 
    11041104 
    1105             for ($i=1; $i<=$length; $i++) { 
     1105            for ($i=1; $i<=$length; ++$i) { 
    11061106                // See #17311 
    11071107                $chunk = mb_substr($str, $start, $i-$start, $charset); 
     
    11341134            $regexp = '/([\x22-\x29\x2C\x2E\x3A-\x40\x5B-\x60\x7B-\x7E\x80-\xFF])/'; 
    11351135 
    1136             for ($i=0; $i<=$length; $i++) { 
     1136            for ($i=0; $i<=$length; ++$i) { 
    11371137                $char = mb_substr($str, $i, 1, $charset); 
    11381138                // RFC recommends underline (instead of =20) in place of the space 
Note: See TracChangeset for help on using the changeset viewer.