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/Mail/Mail/RFC822.php

    r6118 r7655  
    332332        $string = $parts[0]; 
    333333 
    334         for ($i = 0; $i < count($parts); $i++) { 
     334        for ($i = 0; $i < count($parts); ++$i) { 
    335335            if ($this->_hasUnclosedQuotes($string) 
    336336                || $this->_hasUnclosedBrackets($string, '<>') 
     
    426426    { 
    427427        $parts = explode($char, $string); 
    428         for ($i = 0; $i < count($parts); $i++){ 
     428        for ($i = 0; $i < count($parts); ++$i){ 
    429429            if (substr($parts[$i], -1) == '\\' || $this->_hasUnclosedQuotes($parts[$i])) 
    430430                $num--; 
     
    500500        //                         geezer 
    501501        // ... or any other format valid by RFC 822. 
    502         for ($i = 0; $i < count($addresses); $i++) { 
     502        for ($i = 0; $i < count($addresses); ++$i) { 
    503503            if (!$this->validateMailbox($addresses[$i])) { 
    504504                if (empty($this->error)) { 
     
    544544        while (count($parts) > 0){ 
    545545            $phrase_parts[] = $this->_splitCheck($parts, ' '); 
    546             for ($i = 0; $i < $this->index + 1; $i++) 
     546            for ($i = 0; $i < $this->index + 1; ++$i) 
    547547                array_shift($parts); 
    548548        } 
     
    797797        while (count($subdomains) > 0) { 
    798798            $sub_domains[] = $this->_splitCheck($subdomains, '.'); 
    799             for ($i = 0; $i < $this->index + 1; $i++) 
     799            for ($i = 0; $i < $this->index + 1; ++$i) 
    800800                array_shift($subdomains); 
    801801        } 
     
    891891        while (count($parts) > 0){ 
    892892            $words[] = $this->_splitCheck($parts, '.'); 
    893             for ($i = 0; $i < $this->index + 1; $i++) { 
     893            for ($i = 0; $i < $this->index + 1; ++$i) { 
    894894                array_shift($parts); 
    895895            } 
Note: See TracChangeset for help on using the changeset viewer.