Implement exception based error handling, rather than display_error_and_quit.
commit1562a6a7f1b812bf24c58b02fd349f88fe14a313
authorEdward Z. Yang <edwardzyang@thewritingpot.com>
Fri, 16 Mar 2007 00:44:47 +0000 (16 00:44 +0000)
committerEdward Z. Yang <edwardzyang@thewritingpot.com>
Fri, 16 Mar 2007 00:44:47 +0000 (16 00:44 +0000)
treeff14ee9823c1bd13ec7661c80b9e5e06026176e9
parent6eb6072356d79e04ec4574a82c28e7804ee5b6e8
Implement exception based error handling, rather than display_error_and_quit.
- Setup global exception handler
- Add 500 error code
- Remove display_error_and_quit
- Patch up SimpleTest to call tearDown when there are exceptions
- Have XHTMLCompilerTestHarness cleanup after it overloads globals
- Remove setInstance's return of the old instance
- Remove quit(): use exceptions instead

git-svn-id: http://htmlpurifier.org/svnroot@816 48356398-32a2-884e-a903-53898d9a118a
12 files changed:
XHTMLCompiler.php
XHTMLCompiler/Exception.php [new file with mode: 0644]
XHTMLCompiler/PHP.php
XHTMLCompiler/Page.php
common.php
functions.php
htaccess.php
tests/XHTMLCompiler/ExceptionTest.php [new file with mode: 0644]
tests/XHTMLCompiler/FunctionsTest.php
tests/XHTMLCompiler/PageTest.php
tests/XHTMLCompilerHarness.php
tests/index.php