Ignore:
Timestamp:
04/11/12 12:04:21 (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.xmlrpcmsg.inc.php

    r5509 r5912  
    157157                        // see if we got an HTTP 200 OK, else bomb 
    158158                        // but only do this if we're using the HTTP protocol. 
    159                         if (ereg("^HTTP",$data) && !ereg("^HTTP/[0-9.]+ 200 ", $data)) 
     159                        if (preg_match('/^HTTP/',$data) && !preg_match('/^HTTP/[0-9.]+ 200 /', $data)) 
    160160                        { 
    161161                                $errstr = substr($data, 0, strpos($data, "\n")-1); 
     
    169169                        // if using HTTP, then gotta get rid of HTTP headers here 
    170170                        // and we store them in the 'ha' bit of our data array 
    171                         if (ereg("^HTTP", $data)) 
     171                        if (preg_match('/^HTTP/', $data)) 
    172172                        { 
    173173                                $ar=explode("\r\n", $data); 
Note: See TracChangeset for help on using the changeset viewer.