Re: Archive_Tar suggestion
| From: | Matthias Nothhaft | Date: | Tue, 05 Aug 2003 18:07:51 +0000 |
| Subject: | Re: Archive_Tar suggestion | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-19302@lists.php.net to get a copy of this message | ||
Tomas V.V.Cox wrote:
I've found that it's a little bit difficult to get the error returned from the method of the class. I would suggest that at least a method for retrieving it would be nice. For example: $tar = new Archive_Tar($file); $contents = $tar->listContent(); if (!$contents) { // method failed die($tar->getLastError()); // or something so } I guess that just adding a $this->lastError() in _error() and a public method getLastError() could be enough.It would also be great to have error codes in all errors. And to change all die()s into pear_error and not to die() in the constructor if extension not found. (would give me the possibility to use this nice package) Regards, Matthias