Implement exception based error handling, rather than display_error_and_quit.
commit34160dd2c1a1588725a66b7253183376b7ed68b5
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)
treefb24569c9be61ec245c02a9fdff669a694b79526
parent32f763bbfea3b3c5f84c40cf2392aef0eeb0e44d
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:
xhtml-compiler/XHTMLCompiler.php
xhtml-compiler/XHTMLCompiler/Exception.php [new file with mode: 0644]
xhtml-compiler/XHTMLCompiler/PHP.php
xhtml-compiler/XHTMLCompiler/Page.php
xhtml-compiler/common.php
xhtml-compiler/functions.php
xhtml-compiler/htaccess.php
xhtml-compiler/tests/XHTMLCompiler/ExceptionTest.php [new file with mode: 0644]
xhtml-compiler/tests/XHTMLCompiler/FunctionsTest.php
xhtml-compiler/tests/XHTMLCompiler/PageTest.php
xhtml-compiler/tests/XHTMLCompilerHarness.php
xhtml-compiler/tests/index.php