Changeset 5915


Ignore:
Timestamp:
04/11/12 12:25:36 (12 years ago)
Author:
marcosw
Message:

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

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/csv_import.php

    r5912 r5915  
    373373                                        foreach($trans[$csv_idx] as $pattern => $replace) 
    374374                                        { 
    375                                                 if (preg_match((string) '/'.$pattern.'/',$val)) 
     375                                                if (preg_match("/$pattern/",$val)) 
    376376                                                { 
    377377                                                        // echo "<p>csv_idx='$csv_idx',info='$info',trans_csv=".print_r($trans_csv).",ereg_replace('$pattern','$replace','$val') = "; 
     
    380380 
    381381                                                        $reg = $CPreReg.'([a-zA-Z_0-9]+)'.$CPosReg; 
    382                                                         while (preg_match('/'.$reg.'/',$val,$vars)) 
     382                                                        while (preg_match("/$reg/",$val,$vars)) 
    383383                                                        {       // expand all CSV fields 
    384384                                                                $val = str_replace($CPre.$vars[1].$CPos,$val[0] == '@' ? "'".addslashes($fields[array_search($vars[1],$csv_fields)])."'" : $fields[array_search($vars[1],$csv_fields)],$val); 
  • trunk/contactcenter/inc/class.abo_catalog.inc.php

    r5912 r5915  
    356356                                                for($k = 0; $k < $n_joins; $k++) 
    357357                                                { 
    358                                                         if (preg_match('/'.$query_join_reg.'/',$query_fields_joins[$k])) 
     358                                                        if (preg_match("/$query_join_reg/",$query_fields_joins[$k])) 
    359359                                                        {        
    360360                                                                $unique = false; 
     
    430430                                                for($k = 0; $k < $n_joins; $k++) 
    431431                                                { 
    432                                                         if (preg_match('/'.$query_join_reg.'/',$query_restric_joins[$k])) 
     432                                                        if (preg_match("/$query_join_reg/",$query_restric_joins[$k])) 
    433433                                                        {        
    434434                                                                $unique = false; 
  • trunk/phpgwapi/inc/class.network.inc.php

    r5912 r5915  
    164164                        } 
    165165                        $response = $this->read_port(); 
    166                         if(!preg_match('/'.strtoupper($expected_response).'/',strtoupper($response))) 
     166                        if(!preg_match(strtoupper("/$expected_response/"),strtoupper($response))) 
    167167                        { 
    168168                                if(substr($expected_response,1,1) == '+') 
  • trunk/phpgwapi/inc/class.xml.inc.php

    r5912 r5915  
    27492749             
    27502750        // Check whether the first string starts with the second one. 
    2751         if ( preg_match('/'.$second.'/', $first) ) 
     2751        if ( preg_match("/$second/", $first) ) 
    27522752        { 
    27532753            // Return true. 
Note: See TracChangeset for help on using the changeset viewer.