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/PEAR/System.php

    r5146 r7655  
    323323 
    324324        $count_args = count($args); 
    325         for ($i = 0; $i < $count_args; $i++) { 
     325        for ($i = 0; $i < $count_args; ++$i) { 
    326326            if ($args[$i] == '>') { 
    327327                $mode = 'wb'; 
     
    578578        $do_files = $do_dirs = true; 
    579579        $args_count = count($args); 
    580         for ($i = 0; $i < $args_count; $i++) { 
     580        for ($i = 0; $i < $args_count; ++$i) { 
    581581            switch ($args[$i]) { 
    582582                case '-type': 
     
    588588                        } 
    589589                    } 
    590                     $i++; 
     590                    ++$i; 
    591591                    break; 
    592592                case '-name': 
     
    596596                    $name = strtr($name, array('\?' => '.', '\*' => '.*')); 
    597597                    $patterns[] = '('.$name.')'; 
    598                     $i++; 
     598                    ++$i; 
    599599                    break; 
    600600                case '-maxdepth': 
     
    616616            $ret = array(); 
    617617            $files_count = count($files); 
    618             for ($i = 0; $i < $files_count; $i++) { 
     618            for ($i = 0; $i < $files_count; ++$i) { 
    619619                // only search in the part of the file below the current directory 
    620620                $filepart = basename($files[$i]); 
Note: See TracChangeset for help on using the changeset viewer.