Ignore:
Timestamp:
2011/10/25 00:02:55 (12 years ago)
Author:
Seasoft
Message:

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

  • 新しいバージョンの配布ファイルを上書きすることで解決

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

  • 0.11.0 -> 0.12.0
File:
1 edited

Legend:

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

    r20119 r21299  
    2424 */ 
    2525 
     26/** PEAR_Error */ 
    2627require_once 'PEAR.php'; 
    2728 
     
    2930 * PEAR::Error wrapper used to match SOAP Faults to PEAR Errors 
    3031 * 
    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: 
     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: 
    3637 * 
    3738 * <code> 
    38  * $skiptrace =& PEAR::getStaticProperty('PEAR_Error', 'skiptrace'); 
    39  * $skiptrace = true; 
     39 * $backtrace =& PEAR::getStaticProperty('SOAP_Fault', 'backtrace'); 
     40 * $backtrace = true; 
    4041 * </code> 
    4142 * 
     
    7677        $msg = new SOAP_Base(); 
    7778        $params = array(); 
    78         $params[] = new SOAP_Value('faultcode', 'QName', 'SOAP-ENV:' . $this->code); 
     79        $params[] = new SOAP_Value('faultcode', 'QName', SOAP_BASE::SOAPENVPrefix().':' . $this->code); 
    7980        $params[] = new SOAP_Value('faultstring', 'string', $this->message); 
    8081        $params[] = new SOAP_Value('faultactor', 'anyURI', $this->error_message_prefix); 
    81         if (isset($this->backtrace)) { 
     82        if (PEAR::getStaticProperty('SOAP_Fault', 'backtrace') && 
     83            isset($this->backtrace)) { 
    8284            $params[] = new SOAP_Value('detail', 'string', $this->backtrace); 
    8385        } else { 
Note: See TracChangeset for help on using the changeset viewer.