Changeset 6057 for trunk/library


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/library
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/library/PEAR/PEAR/RunTest.php

    r5146 r6057  
    320320                $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']); 
    321321            } 
    322             $ini = preg_split( "/[\n\r]+/", $section_text['INI']); 
     322            $ini = preg_split( '/[\n\r]+/', $section_text['INI']); 
    323323            $ini_settings = $this->settings2array($ini, $ini_settings); 
    324324        } 
     
    804804    { 
    805805        $headers = array(); 
    806         $rh = preg_split("/[\n\r]+/", $text); 
     806        $rh = preg_split('/[\n\r]+/', $text); 
    807807        foreach ($rh as $line) { 
    808808            if (strpos($line, ':')!== false) { 
  • trunk/library/mime/mimeDecode.php

    r4414 r6057  
    665665            $boundary = $bs_possible; 
    666666        } 
    667         $tmp = preg_split("/--".preg_quote($boundary, '/')."((?=\s)|--)/", $input); 
     667        $tmp = preg_split('/\/--/'.preg_quote($boundary, '/')."((?=\s)|--)/", $input); 
    668668 
    669669        $len = count($tmp) -1; 
     
    799799 
    800800            $file = ''; 
    801             $str = preg_split("/\r?\n/", trim($str)); 
     801            $str = preg_split('/\r?\n/', trim($str)); 
    802802            $strlen = count($str); 
    803803 
  • trunk/library/mime/mimePart.php

    r5135 r6057  
    570570        } 
    571571        */ 
    572         $lines  = preg_split("/\r?\n/", $input); 
     572        $lines  = preg_split('/\r?\n/', $input); 
    573573        $escape = '='; 
    574574        $output = ''; 
Note: See TracChangeset for help on using the changeset viewer.