Ignore:
Timestamp:
2011/10/31 13:54:41 (12 years ago)
Author:
kotani
Message:

#1521 (PEAR::SOAP 配布と異なる部分がある)

  • 新しいバージョンの配布ファイルを上書きすることで解決
  • →2.11.4には含めないため一旦コミットキャンセル

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

  • 0.11.0 -> 0.12.0
  • →2.11.4には含めないため一旦コミットキャンセル
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/module/SOAP/Fault.php

    r21299 r21304  
    2424 */ 
    2525 
    26 /** PEAR_Error */ 
    2726require_once 'PEAR.php'; 
    2827 
     
    3029 * PEAR::Error wrapper used to match SOAP Faults to PEAR Errors 
    3130 * 
    32  * SOAP_Fault can provide a complete backtrace of the error.  Revealing these 
    33  * details in a public web services is a bad idea because it can be used by 
    34  * attackers.  Thus you have to enable backtrace information in SOAP_Fault 
    35  * responses by putting the following code in your script after your 
    36  * "require_once 'SOAP/Server.php';" line: 
     31 * SOAP_Fault transmissions normally contain a complete backtrace of the 
     32 * error.  Revealing these details in a public web services is a bad idea 
     33 * because it can be used by attackers.  Backtrace information can be kept out 
     34 * of SOAP_Fault responses by putting the following code in your script after 
     35 * your "require_once 'SOAP/Server.php';" line: 
    3736 * 
    3837 * <code> 
    39  * $backtrace =& PEAR::getStaticProperty('SOAP_Fault', 'backtrace'); 
    40  * $backtrace = true; 
     38 * $skiptrace =& PEAR::getStaticProperty('PEAR_Error', 'skiptrace'); 
     39 * $skiptrace = true; 
    4140 * </code> 
    4241 * 
     
    7776        $msg = new SOAP_Base(); 
    7877        $params = array(); 
    79         $params[] = new SOAP_Value('faultcode', 'QName', SOAP_BASE::SOAPENVPrefix().':' . $this->code); 
     78        $params[] = new SOAP_Value('faultcode', 'QName', 'SOAP-ENV:' . $this->code); 
    8079        $params[] = new SOAP_Value('faultstring', 'string', $this->message); 
    8180        $params[] = new SOAP_Value('faultactor', 'anyURI', $this->error_message_prefix); 
    82         if (PEAR::getStaticProperty('SOAP_Fault', 'backtrace') && 
    83             isset($this->backtrace)) { 
     81        if (isset($this->backtrace)) { 
    8482            $params[] = new SOAP_Value('detail', 'string', $this->backtrace); 
    8583        } else { 
Note: See TracChangeset for help on using the changeset viewer.