Ignore:
Timestamp:
2012/02/09 01:26:58 (12 years ago)
Author:
Seasoft
Message:

#1522 (PEAR::SOAP をバージョンアップ)

  • 0.12.0 -> 0.13.0
  • SOAP_WSDL により、「Yahoo!デベロッパーネットワーク」の「オークション SOAP」を取得できることを確認した。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/module/SOAP/Transport/HTTP.php

    r21318 r21461  
    270270        /* Largely borrowed from HTTP_Request. */ 
    271271        $this->result_headers = array(); 
    272         $headers = split("\r?\n", $headers); 
     272        $headers = preg_split("/\r?\n/", $headers); 
    273273        foreach ($headers as $value) { 
    274             if (strpos($value,':') === false) { 
     274            if (strpos($value, ':') === false) { 
    275275                $this->result_headers[0] = $value; 
    276276                continue; 
    277277            } 
    278             list($name, $value) = split(':', $value); 
     278            list($name, $value) = explode(':', $value); 
    279279            $headername = strtolower($name); 
    280280            $headervalue = trim($value); 
     
    343343 
    344344        switch($code) { 
    345             case 100: // Continue 
     345            // Continue 
     346            case 100: 
    346347                $this->incoming_payload = $match[2]; 
    347348                return $this->_parseResponse(); 
    348349            case 200: 
    349350            case 202: 
    350                 $this->incoming_payload = trim($match[2]); 
    351                 if (!strlen($this->incoming_payload)) { 
     351                if (!strlen(trim($match[2]))) { 
    352352                    /* Valid one-way message response. */ 
    353353                    return true; 
Note: See TracChangeset for help on using the changeset viewer.