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.soap_server.inc.php

    r5509 r5912  
    9292                        { 
    9393                                $action = str_replace('"','',$headers_array["SOAPAction"]); 
    94                                 if(ereg("^urn:",$action)) 
     94                                if(preg_match('/^urn:/',$action)) 
    9595                                { 
    9696                                        $this->service = substr($action,4); 
    9797                                } 
    98                                 elseif(ereg(".php",$action)) 
     98                                elseif(preg_match('/.php/',$action)) 
    9999                                { 
    100100                                        $this->service = ereg_replace('"|/','',substr(strrchr($action,".php"),4,strlen(strrchr($action,"/")))); 
     
    126126                                /* egroupware customization - createobject based on methodname */ 
    127127                                list($app,$class,$method) = explode('.',$this->methodname); 
    128                                 if(ereg("^service",$app)) 
     128                                if(preg_match('/^service/',$app)) 
    129129                                { 
    130130                                        $args  = $class; 
Note: See TracChangeset for help on using the changeset viewer.