Q on PEAR error object and AUTH Package

From: Date: Tue, 02 Sep 2003 03:17:24 +0000
Subject: Q on PEAR error object and AUTH Package
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7528@lists.php.net to get a copy of this message
This ial lthe doc (and file) say about the method... * @return mixed True on success, PEAR error object on error * and AUTH_METHOD_NOT_SUPPORTED otherwise. OK, great. I did this test... $bolRet = $objAuth->addUser( 'name3', 'name3' ); The first time this was run, I got a '1' and 'name3' was dropped into the DB, just fine. The second time I ran this same code, I got 'Object'. So, I did a echo print_r($bolRet) and I got a lot (if you want to see it, I'll post it next time) OK, so I got some kind of Object, a PEAR error object by the docs. So my question is, how do I get this error info out of this PEAR error object? I've been googling for over an hour and I've found nothing that tells me in A-B-C steps how to do this. can someone please help me in my ignorance.. Thanks Walter

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