Should return "TRUE or PEAR_Error" ???

From: Date: Mon, 20 Jul 2009 21:33:44 +0000
Subject: Should return "TRUE or PEAR_Error" ???
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-52427@lists.php.net to get a copy of this message
Hello everybody. Give advice to me, please. I am developping "Mail_CheckUser" package. http://pear.php.net/pepr/pepr-proposal-show.php?id=605 A lot of methods of Net_SMTP package return "TRUE or PEAR_Error". But, I thinks it is confusing for me. (I actually misunderstood it. ) However, I think that I should do Mail_CheckUser so if a lot of packages are so. Now, it return "TRUE OR FALSE", and can access PEAR_Error object with getError() method. Mail_checkuser should return "TRUE OR PEAR_Error" or "TRUE OR FALSE"? Is there the one like some guidelines? (e.g. naming for method and other) Thanks Sorry, if I mistake English. ---- Takayuki Miyauchi Osaka, Japan

« previous php.pear.dev (#52427) next »