cvs: pear /SOAP Base.php

From: Date: Thu, 25 Jan 2007 23:34:08 +0000
Subject: cvs: pear /SOAP Base.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-44387@lists.php.net to get a copy of this message
yunosh Thu Jan 25 23:34:08 2007 UTC Modified files: /pear/SOAP Base.php Log: Remove debug stuff that isn't used anywhere. Should be the final global. http://cvs.php.net/viewvc.cgi/pear/SOAP/Base.php?r1=1.76&r2=1.77&diff_format=u Index: pear/SOAP/Base.php diff -u pear/SOAP/Base.php:1.76 pear/SOAP/Base.php:1.77 --- pear/SOAP/Base.php:1.76 Thu Jan 25 23:29:18 2007 +++ pear/SOAP/Base.php Thu Jan 25 23:34:08 2007 @@ -27,14 +27,6 @@ define('MAIL_MIMEPART_CRLF', "\r\n"); require_once 'PEAR.php'; -/** - * Enable debugging information? - * - * @global bool $GLOBALS['SOAP_DEBUG'] - * @name $SOAP_DEBUG - */ -$GLOBALS['SOAP_DEBUG'] = false; - if (!function_exists('version_compare') || version_compare(phpversion(), '4.1', '<')) { die("requires PHP 4.1 or higher\n"); @@ -81,22 +73,6 @@ class SOAP_Base_Object extends PEAR { - /** - * Store debugging information in $_debug_data? - * - * @see $debug_data, SOAP_Base - * @var boolean $_debug_flag - */ - var $_debug_flag = false; - - /** - * String containing debugging information if $_debug_flag is true. - * - * @access public - * @see $debug_flag, SOAP_Base - * @var string $_debug_data - */ - var $_debug_data = ''; /** * Supported encodings, limited by XML extension. @@ -122,14 +98,11 @@ /** * Constructor. * - * @see $debug_data, _debug() - * * @param string $faultcode Error code. */ function SOAP_Base_Object($faultcode = 'Client') { $this->_myfaultcode = $faultcode; - $this->_debug_flag = $GLOBALS['SOAP_DEBUG']; parent::PEAR('SOAP_Fault'); } @@ -139,10 +112,6 @@ * Please refer to the SOAP definition for an impression of what a certain * parameter stands for. * - * Use $debug_flag to store errors to the member variable $debug_data - * - * @see $debug_flag, $debug_data, SOAP_Fault - * * @param string|object $str Error message or object. * @param string $detail Detailed error message. * @param string $actorURI @@ -186,19 +155,6 @@ return $this->fault; } - /** - * Adds a string to the debug data. - * - * @param string $string Debugging message. - */ - function _debug($string) - { - if ($this->_debug_flag) { - $this->_debug_data .= get_class($this) . ': ' . - str_replace('>', ">\r\n", $string) . "\n"; - } - } - } /** @@ -331,8 +287,6 @@ /** * Constructor. * - * @see $debug_data, _debug() - * * @param string $faultcode Error code. */ function SOAP_Base($faultcode = 'Client')

« previous php.pear.cvs (#44387) next »