cvs: pear /SOAP Fault.php
| From: | Jan Schneider | Date: | Mon, 19 Jun 2006 14:17:43 +0000 |
| Subject: | cvs: pear /SOAP Fault.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-40812@lists.php.net to get a copy of this message | ||
yunosh Mon Jun 19 14:17:43 2006 UTC
Modified files:
/pear/SOAP Fault.php
Log:
Add and fix phpdoc (Request 6936).
http://cvs.php.net/viewvc.cgi/pear/SOAP/Fault.php?r1=1.17&r2=1.18&diff_format=u
Index: pear/SOAP/Fault.php
diff -u pear/SOAP/Fault.php:1.17 pear/SOAP/Fault.php:1.18
--- pear/SOAP/Fault.php:1.17 Mon May 30 22:16:37 2005
+++ pear/SOAP/Fault.php Mon Jun 19 14:17:43 2006
@@ -18,17 +18,27 @@
* @author Shane Caraveo <Shane@Caraveo.com> Port to PEAR and more
* @author Chuck Hagenbuch <chuck@horde.org> Maintenance
* @author Jan Schneider <jan@horde.org> Maintenance
- * @copyright 2003-2005 The PHP Group
+ * @copyright 2003-2006 The PHP Group
* @license http://www.php.net/license/2_02.txt PHP License 2.02
* @link http://pear.php.net/package/SOAP
*/
-require_once('PEAR.php');
+require_once 'PEAR.php';
/**
- * SOAP_Fault
* PEAR::Error wrapper used to match SOAP Faults to PEAR Errors
*
+ * SOAP_Fault transmissions normally contain a complete backtrace of the error.
+ * Revealing these details in a public web services is a bad idea because it
+ * can be used by attackers. Backtrace information can be kept out of
+ * SOAP_Fault responses by putting the following code in your script after
+ * your "require_once 'SOAP/Server.php';" line:
+ *
+ * <code>
+ * $skiptrace =& PEAR::getStaticProperty('PEAR_Error', 'skiptrace');
+ * $skiptrace = true;
+ * </code>
+ *
* @package SOAP
* @access public
* @author Shane Caraveo <Shane@Caraveo.com> Port to PEAR and more
@@ -54,8 +64,6 @@
}
/**
- * message
- *
* returns a SOAP_Message class that can be sent as a server response
*
* @return SOAP_Message
@@ -80,8 +88,6 @@
}
/**
- * getFault
- *
* returns a simple native php array containing the fault data
*
* @return array
@@ -107,8 +113,6 @@
}
/**
- * getActor
- *
* returns the SOAP actor for the fault
*
* @return string
@@ -120,8 +124,6 @@
}
/**
- * getDetail
- *
* returns the fault detail
*
* @return string