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/phpgwapi/inc/class.errorlog.inc.php

    r7655 r7673  
    124124 
    125125                        $errorstack = $this->errorstack; 
    126                         for ($i = 0; $i < count($errorstack); ++$i) 
     126            $errorstack_count = count($errorstack); 
     127                        for ($i = 0; $i < $errorstack_count; ++$i) 
    127128                        { 
    128129                                $err = $errorstack[$i]; 
     
    153154                        $new = array(); 
    154155                        reset($this->errorstack); 
    155                         for ($i = 0; $i < count($this->errorstack); ++$i) 
     156            $errorstack_count = count($this->errorstack); 
     157                        for ($i = 0; $i < $errorstack_count; ++$i) 
    156158                        { 
    157159                                $err = $this->errorstack[$i]; 
     
    182184 
    183185                        $errorstack = $this->errorstack; 
    184                         for ($i = 0; $i < count($errorstack); ++$i) 
     186            $errorstack_count = count($errorstack); 
     187                        for ($i = 0; $i < $errorstack_count; ++$i) 
    185188                        { 
    186189                                $err = $errorstack[$i]; 
Note: See TracChangeset for help on using the changeset viewer.