Changeset 6057 for trunk/filemanager


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/filemanager/tp/dompdf
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/filemanager/tp/dompdf/dompdf.php

    r3019 r6057  
    229229 
    230230  if ( isset($opts['t']) ) { 
    231     $arr = split(',',$opts['t']); 
     231    $arr = preg_split('/,/',$opts['t']); 
    232232    $types = array(); 
    233233    foreach ($arr as $type) 
  • trunk/filemanager/tp/dompdf/include/block_frame_decorator.cls.php

    r3019 r6057  
    186186 
    187187    if ( $frame->get_node()->nodeName == "#text") 
    188       $this->_lines[$this->_cl]["wc"] += count(preg_split("/\s+/", $frame->get_text())); 
     188      $this->_lines[$this->_cl]["wc"] += count(preg_split('/\s+/', $frame->get_text())); 
    189189 
    190190    $this->_lines[$this->_cl]["w"] += $w; 
  • trunk/filemanager/tp/dompdf/include/dompdf.cls.php

    r3019 r6057  
    363363        //Check if the css file is for an accepted media type 
    364364        //media not given then always valid 
    365         $formedialist = preg_split("/[\s\n,]/", $link->getAttribute("media"),-1, PREG_SPLIT_NO_EMPTY); 
     365        $formedialist = preg_split('/[\s\n,]/', $link->getAttribute("media"),-1, PREG_SPLIT_NO_EMPTY); 
    366366        if ( count($formedialist) > 0 ) { 
    367367          $accept = false; 
  • trunk/filemanager/tp/dompdf/include/stylesheet.cls.php

    r3019 r6057  
    357357 
    358358    // Parse the selector 
    359     //$s = preg_split("/([ :>.#+])/", $selector, -1, PREG_SPLIT_DELIM_CAPTURE); 
     359    //$s = preg_split('/([ :>.#+])/', $selector, -1, PREG_SPLIT_DELIM_CAPTURE); 
    360360 
    361361    $delimiters = array(" ", ">", ".", "#", "+", ":", "["); 
     
    883883   */ 
    884884  private function _parse_import($url) { 
    885     $arr = preg_split("/[\s\n,]/", $url,-1, PREG_SPLIT_NO_EMPTY); 
     885    $arr = preg_split('/[\s\n,]/', $url,-1, PREG_SPLIT_NO_EMPTY); 
    886886    $url = array_shift($arr); 
    887887    $accept = false; 
  • trunk/filemanager/tp/dompdf/include/text_frame_reflower.cls.php

    r3019 r6057  
    363363      // faster than doing a single-pass character by character scan.  Heh, 
    364364      // yes I took the time to bench it ;) 
    365       $words = array_flip(preg_split("/[\s-]+/u",$str, -1, PREG_SPLIT_DELIM_CAPTURE)); 
     365      $words = array_flip(preg_split('/[\s-]+/u',$str, -1, PREG_SPLIT_DELIM_CAPTURE)); 
    366366      array_walk($words, create_function('&$val,$str', 
    367367                                         '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');')); 
     
    371371 
    372372    case "pre": 
    373       $lines = array_flip(preg_split("/\n/u", $str)); 
     373      $lines = array_flip(preg_split('/\n/u', $str)); 
    374374      array_walk($lines, create_function('&$val,$str', 
    375375                                         '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');')); 
     
    398398    case "pre-wrap": 
    399399      // Find the longest word (i.e. minimum length) 
    400       $lines = array_flip(preg_split("/\n/", $text)); 
     400      $lines = array_flip(preg_split('/\n/', $text)); 
    401401      array_walk($lines, create_function('&$val,$str', 
    402402                                         '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');')); 
Note: See TracChangeset for help on using the changeset viewer.