Changeset 7673 for trunk/library
- Timestamp:
- 12/18/12 16:15:29 (11 years ago)
- Location:
- trunk/library
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/library/Mail/Mail/RFC822.php
r7655 r7673 332 332 $string = $parts[0]; 333 333 334 for ($i = 0; $i < count($parts); ++$i) { 334 $parts_count = count($parts); 335 for ($i = 0; $i < $parts_count; ++$i) { 335 336 if ($this->_hasUnclosedQuotes($string) 336 337 || $this->_hasUnclosedBrackets($string, '<>') … … 426 427 { 427 428 $parts = explode($char, $string); 428 for ($i = 0; $i < count($parts); ++$i){ 429 $parts_count = count($parts); 430 for ($i = 0; $i < $parts_count; ++$i){ 429 431 if (substr($parts[$i], -1) == '\\' || $this->_hasUnclosedQuotes($parts[$i])) 430 432 $num--; … … 500 502 // geezer 501 503 // ... or any other format valid by RFC 822. 502 for ($i = 0; $i < count($addresses); ++$i) { 504 $addresses_count = count($addresses); 505 for ($i = 0; $i < $addresses_count; ++$i) { 503 506 if (!$this->validateMailbox($addresses[$i])) { 504 507 if (empty($this->error)) { -
trunk/library/Mail/Mail/smtpmx.php
r5146 r7673 436 436 return false; 437 437 } 438 for ($i = 0; $i < count($mxHost); ++$i) { 438 $mxHost_count = count($mxHost); 439 for ($i = 0; $i < $mxHost_count; ++$i) { 439 440 $mx[$mxHost[$i]] = $mxWeight[$i]; 440 441 } -
trunk/library/Net/Sieve.php
r7655 r7673 929 929 $data = preg_split('/\r?\n/', $this->_toUpper($data), -1, PREG_SPLIT_NO_EMPTY); 930 930 931 for ($i = 0; $i < count($data); ++$i) { 931 $data_count = count($data); 932 for ($i = 0; $i < $data_count; ++$i) { 932 933 if (!preg_match('/^"([A-Z]+)"( "(.*)")?$/', $data[$i], $matches)) { 933 934 continue; -
trunk/library/PEAR/PEAR/Frontend/CLI.php
r7655 r7673 579 579 { 580 580 $highest = 1; 581 for ($i = 0; $i < count($columns); ++$i) { 581 $columns_count = count($columns); 582 for ($i = 0; $i < $columns_count; ++$i) { 582 583 $col = &$columns[$i]; 583 584 if (isset($colparams[$i]) && !empty($colparams[$i]['wrap'])) { … … 672 673 } 673 674 674 for ($i = 0; $i < count($table_data); ++$i) { 675 $table_data_count = count($table_data); 676 for ($i = 0; $i < $table_data_count; ++$i) { 675 677 extract($table_data[$i]); 676 678 if (!is_array($rowparams)) { … … 684 686 $rowlines = array(); 685 687 if ($height > 1) { 686 for ($c = 0; $c < count($data); $c++) { 688 $data_count = count($data); 689 for ($c = 0; $c < $data_count; $c++) { 687 690 $rowlines[$c] = preg_split('/(\r?\n|\r)/', $data[$c]); 688 691 if (count($rowlines[$c]) < $height) { … … 691 694 } 692 695 } else { 693 for ($c = 0; $c < count($data); ++$c) { 696 $data_count = count($data); 697 for ($c = 0; $c < $data_count; ++$c) { 694 698 $rowlines[$c] = array($data[$c]); 695 699 } … … 698 702 for ($r = 0; $r < $height; ++$r) { 699 703 $rowtext = ''; 700 for ($c = 0; $c < count($data); ++$c) { 704 $data_count = count($data); 705 for ($c = 0; $c < $data_count; ++$c) { 701 706 if (isset($colparams[$c])) { 702 707 $attribs = array_merge($rowparams, $colparams); -
trunk/library/PEAR/PEAR/PackageFile/v2.php
r7655 r7673 329 329 $mymaintainers = $this->getMaintainers(); 330 330 $yourmaintainers = $pf1->getMaintainers(); 331 for ($i1 = 0; $i1 < count($yourmaintainers); ++$i1) { 331 $yourmaintainers_count = count($yourmaintainers); 332 for ($i1 = 0; $i1 < $yourmaintainers_count; ++$i1) { 332 333 $reset = false; 333 for ($i2 = 0; $i2 < count($mymaintainers); ++$i2) { 334 $mymaintainers_count = count($mymaintainers); 335 for ($i2 = 0; $i2 < $mymaintainers_count; ++$i2) { 334 336 if ($mymaintainers[$i2]['handle'] == $yourmaintainers[$i1]['handle']) { 335 337 if ($mymaintainers[$i2]['role'] != $yourmaintainers[$i1]['role']) { … … 1213 1215 } 1214 1216 1215 for ($i = 0; $i < count($releases['configureoption']); ++$i) { 1217 $releases_count = count($releases['configureoption']); 1218 for ($i = 0; $i < $releases_count; ++$i) { 1216 1219 $releases['configureoption'][$i] = $releases['configureoption'][$i]['attribs']; 1217 1220 } -
trunk/library/ckeditor/plugins/aspell/spellerpages/server-scripts/spellchecker.php
r7655 r7673 82 82 # open temp file, add the submitted text. 83 83 if( $fh = fopen( $tempfile, 'w' )) { 84 for( $i = 0; $i < count( $textinputs ); ++$i ) { 84 $textinputs_count = count( $textinputs ); 85 for( $i = 0; $i < $textinputs_count; ++$i ) { 85 86 $text = urldecode( $textinputs[$i] ); 86 87 $text = html_entity_decode ($text , ENT_QUOTES , 'UTF-8' ); -
trunk/library/csstidy/class.csstidy.php
r7655 r7673 419 419 $template = explode('|',$content); 420 420 421 for ($i = 0; $i < count($template); ++$i ) 421 $template_count = count($template); 422 for ($i = 0; $i < $template_count; ++$i ) 422 423 { 423 424 $this->template[$i] = $template[$i]; -
trunk/library/csstidy/class.csstidy_optimise.php
r7655 r7673 302 302 $color_tmp = substr($color,4,strlen($color)-5); 303 303 $color_tmp = explode(',',$color_tmp); 304 for ( $i = 0; $i < count($color_tmp); ++$i ) 304 $color_tmp_count = count($color_tmp); 305 for ( $i = 0; $i < $color_tmp_count; ++$i ) 305 306 { 306 307 $color_tmp[$i] = trim ($color_tmp[$i]); … … 383 384 $temp = array($subvalue); 384 385 } 385 for ($l = 0; $l < count($temp); ++$l) 386 $temp_count = count($temp); 387 for ($l = 0; $l < $temp_count; ++$l) 386 388 { 387 389 // continue if no numeric value … … 665 667 666 668 $str_value = csstidy_optimise::explode_ws(',',$str_value); 667 for($i = 0; $i < count($str_value); ++$i) 669 $str_value_count = count($str_value); 670 for($i = 0; $i < $str_value_count; ++$i) 668 671 { 669 672 $have['clip'] = FALSE; $have['pos'] = FALSE; … … 672 675 $str_value[$i] = csstidy_optimise::explode_ws(' ',trim($str_value[$i])); 673 676 674 for($j = 0; $j < count($str_value[$i]); ++$j) 677 $str_value_count = count($str_value[$i]); 678 for($j = 0; $j < $str_value_count; ++$j) 675 679 { 676 680 if($have['bg'] === FALSE && (substr($str_value[$i][$j],0,4) == 'url(' || $str_value[$i][$j] === 'none')) -
trunk/library/csstidy/css_optimiser.php
r7655 r7673 322 322 { 323 323 echo '<dt>'.$line.'</dt>'; 324 for($i = 0; $i < count($array); ++$i) 324 $array_count = count($array); 325 for($i = 0; $i < $array_count; ++$i) 325 326 { 326 327 echo '<dd class="'.$array[$i]['t'].'">'.$array[$i]['m'].'</dd>'; -
trunk/library/mime/mime.php
r7655 r7673 895 895 case !$text && !$html && $attachments: 896 896 $message =& $this->_addMixedPart(); 897 for ($i = 0; $i < count($this->_parts); ++$i) { 897 $parts_count = count($this->_parts); 898 for ($i = 0; $i < $parts_count; ++$i) { 898 899 $this->_addAttachmentPart($message, $this->_parts[$i]); 899 900 } … … 903 904 $message =& $this->_addMixedPart(); 904 905 $this->_addTextPart($message, $this->_txtbody); 905 for ($i = 0; $i < count($this->_parts); ++$i) { 906 $parts_count = count($this->_parts); 907 for ($i = 0; $i < $parts_count; ++$i) { 906 908 $this->_addAttachmentPart($message, $this->_parts[$i]); 907 909 } … … 930 932 $ht =& $this->_addRelatedPart($message); 931 933 $this->_addHtmlPart($ht); 932 for ($i = 0; $i < count($this->_html_images); ++$i) { 934 $html_images_count = count($this->_html_images); 935 for ($i = 0; $i < $html_images_count; ++$i) { 933 936 $this->_addHtmlImagePart($ht, $this->_html_images[$i]); 934 937 } … … 939 942 $message =& $this->_addRelatedPart($null); 940 943 $this->_addHtmlPart($message); 941 for ($i = 0; $i < count($this->_html_images); ++$i) { 944 $html_images_count = count($this->_html_images); 945 for ($i = 0; $i < $html_images_count; ++$i) { 942 946 $this->_addHtmlImagePart($message, $this->_html_images[$i]); 943 947 } … … 958 962 $this->_addHtmlPart($message); 959 963 } 960 for ($i = 0; $i < count($this->_html_images); ++$i) { 964 $html_images_count = count($this->_html_images); 965 for ($i = 0; $i < $html_images_count; ++$i) { 961 966 $this->_addHtmlImagePart($message, $this->_html_images[$i]); 962 967 } … … 973 978 $this->_addHtmlPart($message); 974 979 } 975 for ($i = 0; $i < count($this->_parts); ++$i) { 980 $parts_count = count($this->_parts); 981 for ($i = 0; $i < $parts_count; ++$i) { 976 982 $this->_addAttachmentPart($message, $this->_parts[$i]); 977 983 } … … 989 995 } 990 996 $this->_addHtmlPart($rel); 991 for ($i = 0; $i < count($this->_html_images); ++$i) { 997 $html_images_count = count($this->_html_images); 998 for ($i = 0; $i < $html_images_count; ++$i) { 992 999 $this->_addHtmlImagePart($rel, $this->_html_images[$i]); 993 1000 } 994 for ($i = 0; $i < count($this->_parts); ++$i) { 1001 $parts_count = count($this->_parts); 1002 for ($i = 0; $i < $parts_count; ++$i) { 995 1003 $this->_addAttachmentPart($message, $this->_parts[$i]); 996 1004 } … … 1008 1016 $this->_addHtmlPart($message); 1009 1017 } 1010 1011 for ($i = 0; $i < count($this->_html_images); ++$i) { 1018 1019 $html_images_count = count($this->_html_images); 1020 for ($i = 0; $i < $html_images_count; ++$i) { 1012 1021 $this->_addHtmlImagePart($message, $this->_html_images[$i]); 1013 1022 } 1014 for ($i = 0; $i < count($this->_parts); ++$i) { 1023 $parts_count = count($this->_parts); 1024 for ($i = 0; $i < $parts_count; ++$i) { 1015 1025 $this->_addAttachmentPart($message, $this->_parts[$i]); 1016 1026 } -
trunk/library/mime/mimeDecode.php
r7655 r7673 326 326 327 327 $parts = $this->_boundarySplit($body, $content_type['other']['boundary']); 328 for ($i = 0; $i < count($parts); ++$i) { 328 $parts_count = count($parts); 329 for ($i = 0; $i < $parts_count; ++$i) { 329 330 list($part_header, $part_body) = $this->_splitBodyHeader($parts[$i]); 330 331 $part = $this->_decode($part_header, $part_body, $default_ctype); … … 386 387 $return[$prepend . $mime_number] = &$structure; 387 388 } 388 for ($i = 0; $i < count($structure->parts); ++$i) {389 389 $structure_parts_count = count($structure->parts); 390 for ($i = 0; $i < $structure_parts_count; ++$i) { 390 391 391 392 if (!empty($structure->headers['content-type']) AND substr(strtolower($structure->headers['content-type']), 0, 8) == 'message/') { … … 792 793 preg_match_all("/begin ([0-7]{3}) (.+)\r?\n(.+)\r?\nend/Us", $input, $matches); 793 794 794 for ($j = 0; $j < count($matches[3]); ++$j) { 795 $matches_count = count($matches[3]); 796 for ($j = 0; $j < $matches_count; ++$j) { 795 797 796 798 $str = $matches[3][$j]; … … 943 945 // Multiple headers with this name 944 946 if (is_array($headers[$hdr_name])) { 945 for ($i = 0; $i < count($hdr_value); ++$i) { 947 $hdr_value_count = count($hdr_value); 948 for ($i = 0; $i < $hdr_value_count; ++$i) { 946 949 $output .= Mail_mimeDecode::_getXML_helper($hdr_name, $hdr_value[$i], $indent); 947 950 } … … 954 957 955 958 if (!empty($input->parts)) { 956 for ($i = 0; $i < count($input->parts); ++$i) { 959 $parts_count = count($input->parts); 960 for ($i = 0; $i < $parts_count; ++$i) { 957 961 $output .= $crlf . str_repeat($htab, $indent) . '<mimepart>' . $crlf . 958 962 Mail_mimeDecode::_getXML($input->parts[$i], $indent+1) . -
trunk/library/mime/mimePart.php
r7655 r7673 283 283 $encoded['body'] = ''; 284 284 285 for ($i = 0; $i < count($this->_subparts); ++$i) { 285 $subparts_count = count($this->_subparts); 286 for ($i = 0; $i < $subparts_count; ++$i) { 286 287 $encoded['body'] .= '--' . $boundary . $eol; 287 288 $tmp = $this->_subparts[$i]->encode(); … … 393 394 394 395 if (count($this->_subparts)) { 395 for ($i = 0; $i < count($this->_subparts); ++$i) { 396 $subparts_count = count($this->_subparts); 397 for ($i = 0; $i < $subparts_count; ++$i) { 396 398 fwrite($fh, $f_eol . '--' . $boundary . $eol); 397 399 $res = $this->_subparts[$i]->_encodePartToFile($fh);
Note: See TracChangeset
for help on using the changeset viewer.