problems with PEAR's error codes
| From: | Lukas Smith | Date: | Tue, 12 Jul 2005 09:22:32 +0000 |
| Subject: | problems with PEAR's error codes | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-38580@lists.php.net to get a copy of this message | ||
Hi,
I seem to be having a problem with PEAR's error code handling. Specifically I am trying to migrate the error codes to SQLSTATE error code strings from what were previously negative integers.
This means I would appreciate a change in PEAR::isError() to use === instead of ==. I think this should not be a BC issue.
However a more important problem is in PEAR::raiseError() which I will probably have to stop using since it checks the message string if the expected error is a string.
Any ideas, thoughts?
regards,
Lukas