Am i doing right with PEAR error

From: Date: Fri, 21 Jun 2002 14:19:03 +0000
Subject: Am i doing right with PEAR error
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1733@lists.php.net to get a copy of this message
Hi! here is my test code class A extends PEAR { function A() { $this->PEAR(); if (!empty($config) { return $this->raiseError("missing config.",2,PEAR_ERROR_PRINT); } } function _A() { echo $endTime; } } class B extends A { function B() { .... some code } function _B() { if ($error) { // output page content } A::_A(); } } $obj =& new B(); First I want to know if there is any mistake that maybe I use in wrong way, second how can i know if between execution were any errors. While ago i write my own error handler but now i want to use PEAR because of everything in it. -- lp, Uros mailto:uros@sir-mag.com

« previous php.pear.general (#1733) next »