PEAR_Error compatiblity to PEAR_ErrorStack
| From: | Christian Weiske | Date: | Tue, 11 Dec 2007 09:26:07 +0000 |
| Subject: | PEAR_Error compatiblity to PEAR_ErrorStack | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-48755@lists.php.net to get a copy of this message | ||
Hello,
I do have problems using PEAR_Error objects as parameters to
PEAR_ErrorStack::staticPush(). This is because PEAR_ErrorStack expects
all objects passed as parameters to have a __toString() method, which
PEAR_Error does not have.
Is there anything to say against adding the method to PEAR_Error?
It could redirect to getMessage().
--
Regards/Mit freundlichen Grüßen
Christian Weiske
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc