[eluser]Al James[/eluser]
Urg! Yes, I forgot about Exceptions not being in php4.
Hmmmm... I wonder if there is away around this?
I.e. Have the CI_Exceptions class actually throw an Exception if its running on PHP5? Like this:
* Create a CI_Exception class that extends Exception and holds the fields from CI_Exceptions->show_error
* Create a default exception handler that receieves the CI_Exception and does the same as the current CI_Exceptions->show_error function.
* Change CI_Exceptions->show_error so that if PHP5, throw a new Exception, if PHP4 just do as normal.
I understand that having 'throw' etc in the code igniter libraries would break PHP4 support. You could either:
A) Have a separate file for PHP4 and 5 (like Base4.php and Base5.php files)
B) eval('throw new Exception()'); (sneaky hey?)
What do ya all think?