/** * Network debug interface. * * @param[in] name string Debug session name. * @param[in] debug_host string Debug interface host. * @param[in] debug_port int Debug interface port. * @param[in] attach_to_error_handler boolean If the debug system should * overwrite the php's default error_handler. * @param[in] buffered boolean Enable/disable buffered output. * @param[in] charset string Connection charset. */ public function __construct($name, $debug_host, $debug_port = 6660, $attach_to_error_handler = true, $buffered = true, $charset = 'iso-8859-1') { parent::__construct($attach_to_error_handler, $buffered); $this->name = $name; $this->host = $debug_host; $this->port = $debug_port; $this->charset = $charset; if (!$buffered) { // open socket on startup, else the socket will be opened only // on __destruct for flush $this->openSocket(); } }
/** * HTML debug interface. * * This interface is always buffered. * * @param[in] name string Debug session name. * @param[in] attach_to_error_handler boolean If the debug system should * overwrite the php's default error_handler. */ public function __construct($name, $attach_to_error_handler = true) { parent::__construct($attach_to_error_handler, true); $this->name = $name; }
/** * Text console debug interface. * * @param[in] name string Debug session name. * @param[in] attach_to_error_handler boolean If the debug system should * overwrite the php's default error_handler. * @param[in] buffered boolean Enable/disable buffered output. * @param[in] colors boolean Enable/disable colored output. */ public function __construct($name, $attach_to_error_handler = true, $buffered = true, $colors = true) { parent::__construct($attach_to_error_handler, $buffered); $this->name = $name; $this->colors = $colors; }