Ignore:
Timestamp:
04/12/12 15:18:08 (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/phpgwapi/inc/class.ping.inc.php

    r2 r5934  
    7272                        $packet_tx   = str_replace(' packets transmitted','',$values[0]); 
    7373                        $packet_rx   = str_replace(' packets received','',$values[1]); 
    74                         $packet_loss = ereg_replace('% packet loss','',$values[2]); 
     74                        $packet_loss = preg_replace('/% packet loss/','',$values[2]); 
    7575 
    7676                        $this->packet_tx   = (int)str_replace(' ','',$packet_tx); 
Note: See TracChangeset for help on using the changeset viewer.