Ignore:
Timestamp:
04/27/12 09:17:30 (12 years ago)
Author:
marcosw
Message:

Ticket #2398 - Compatibilizacao com PHP-5.3 em alguns módulos do expresso

Location:
trunk/expressoMail1_2/spell_checker
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/spell_checker/cpaint/cpaint2.proxy.php

    r3400 r6057  
    127127    } 
    128128 
    129     list($http_headers, $http_body) = split("\r\n\r\n", $http_data, 2); 
     129    list($http_headers, $http_body) = preg_split('/\r\n\r\n/', $http_data, 2); 
    130130    echo($http_body); 
    131131    @fclose($cp_socket); 
  • trunk/expressoMail1_2/spell_checker/pspell_comp.php

    r3400 r6057  
    201201 
    202202            //parse output 
    203             $lines = split("\n",$out); 
     203            $lines = preg_split('/\n/',$out); 
    204204            foreach ($lines as $line){ 
    205205                $line = trim($line); 
     
    210210                if($line[0] == '&'){ 
    211211                    $line = preg_replace('/&.*?: /','',$line); 
    212                     return split(', ',$line); 
     212                    return preg_split('/, /',$line); 
    213213                } 
    214214            } 
  • trunk/expressoMail1_2/spell_checker/spell_checker.php

    r3400 r6057  
    197197 
    198198        //splits the string on any html tags, preserving the tags and putting them in the $words array 
    199         $words = preg_split("/(<[^<>]*>)/", $string, -1, PREG_SPLIT_DELIM_CAPTURE); 
     199        $words = preg_split('/(<[^<>]*>)/', $string, -1, PREG_SPLIT_DELIM_CAPTURE); 
    200200 
    201201        $numResults = count($words); //the number of elements in the array. 
     
    215215                if(($i & 1) == 0) // Even-numbered entries are word sets. 
    216216                { 
    217                         $words[$i] = preg_split("/(\s+|\&nbsp;)/", $words[$i], -1, PREG_SPLIT_DELIM_CAPTURE); //then split it on the spaces 
     217                        $words[$i] = preg_split('/(\s+|\&nbsp;)/', $words[$i], -1, PREG_SPLIT_DELIM_CAPTURE); //then split it on the spaces 
    218218 
    219219                        // Now go through each word and link up the misspelled ones. 
Note: See TracChangeset for help on using the changeset viewer.