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/mime.php

    r6266 r7655  
    895895        case !$text && !$html && $attachments: 
    896896            $message =& $this->_addMixedPart(); 
    897             for ($i = 0; $i < count($this->_parts); $i++) { 
     897            for ($i = 0; $i < count($this->_parts); ++$i) { 
    898898                $this->_addAttachmentPart($message, $this->_parts[$i]); 
    899899            } 
     
    903903            $message =& $this->_addMixedPart(); 
    904904            $this->_addTextPart($message, $this->_txtbody); 
    905             for ($i = 0; $i < count($this->_parts); $i++) { 
     905            for ($i = 0; $i < count($this->_parts); ++$i) { 
    906906                $this->_addAttachmentPart($message, $this->_parts[$i]); 
    907907            } 
     
    930930                $ht =& $this->_addRelatedPart($message); 
    931931                $this->_addHtmlPart($ht); 
    932                 for ($i = 0; $i < count($this->_html_images); $i++) { 
     932                for ($i = 0; $i < count($this->_html_images); ++$i) { 
    933933                    $this->_addHtmlImagePart($ht, $this->_html_images[$i]); 
    934934                } 
     
    939939                $message =& $this->_addRelatedPart($null); 
    940940                $this->_addHtmlPart($message); 
    941                 for ($i = 0; $i < count($this->_html_images); $i++) { 
     941                for ($i = 0; $i < count($this->_html_images); ++$i) { 
    942942                    $this->_addHtmlImagePart($message, $this->_html_images[$i]); 
    943943                } 
     
    958958                $this->_addHtmlPart($message); 
    959959            } 
    960             for ($i = 0; $i < count($this->_html_images); $i++) { 
     960            for ($i = 0; $i < count($this->_html_images); ++$i) { 
    961961                $this->_addHtmlImagePart($message, $this->_html_images[$i]); 
    962962            } 
     
    973973                $this->_addHtmlPart($message); 
    974974            } 
    975             for ($i = 0; $i < count($this->_parts); $i++) { 
     975            for ($i = 0; $i < count($this->_parts); ++$i) { 
    976976                $this->_addAttachmentPart($message, $this->_parts[$i]); 
    977977            } 
     
    989989            } 
    990990            $this->_addHtmlPart($rel); 
    991             for ($i = 0; $i < count($this->_html_images); $i++) { 
     991            for ($i = 0; $i < count($this->_html_images); ++$i) { 
    992992                $this->_addHtmlImagePart($rel, $this->_html_images[$i]); 
    993993            } 
    994             for ($i = 0; $i < count($this->_parts); $i++) { 
     994            for ($i = 0; $i < count($this->_parts); ++$i) { 
    995995                $this->_addAttachmentPart($message, $this->_parts[$i]); 
    996996            } 
     
    10091009            } 
    10101010                         
    1011             for ($i = 0; $i < count($this->_html_images); $i++) { 
     1011            for ($i = 0; $i < count($this->_html_images); ++$i) { 
    10121012                $this->_addHtmlImagePart($message, $this->_html_images[$i]); 
    10131013            } 
    1014             for ($i = 0; $i < count($this->_parts); $i++) { 
     1014            for ($i = 0; $i < count($this->_parts); ++$i) { 
    10151015                $this->_addAttachmentPart($message, $this->_parts[$i]); 
    10161016            } 
Note: See TracChangeset for help on using the changeset viewer.