Ignore:
Timestamp:
2012/01/17 16:32:25 (12 years ago)
Author:
Seasoft
Message:

2.12系へマイルストーン変更となったチケット分を差し戻し
r21326 #1536
r21325 #1528
r21324 #1547,#1546
r21323 #1546
r21322 #1543
r21321 #1536
r21320 #1536
r21319 #1544
r21318 #1521,#1522
r21317 #1431

File:
1 edited

Legend:

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

    r21318 r21410  
    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.