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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.