Quote:
Originally Posted by Nibbles
I noticed other threads with people having problems. PHP5 has this great new thing called Exceptions. If there is an error, it will kill the execution of the script, unless the programmer has a method of catching and handling the exception.
The official PHP client is serverely lacking in error checking, for instance, if the API server returns a blank XML (XHTML, say) document, then no error will pop up.
...
|
I implemented the function into the class file, and implemented more error checking and exception throwing.
No license of any sort was included with the PHP5 library, nothing. I modified it with rights
implied, and my changes are in the public domain (since there is no real logic or creativity in my changes). Feel free to re-license with whatever you want.
List of changes:
- implemented exceptions, replaced die() ("exit") calls too (see php.net/exceptions)
- TBA_Exception class for handling API errors
- PHPDocumentor comments
- prepended tba_ to all functions as a namespace
I believe I mentioned this, but documenting stuff as a PDF file is very annoying, HTML is fine thank you.