#36: set_error_handler
-------------------------+--------------------------------------------------
Reporter: mike | Owner: david
Type: enhancement | Status: new
Priority: high | Milestone: 1.0
Component: exception | Version:
Severity: normal | Resolution:
Keywords: | Has_patch: 0
-------------------------+--------------------------------------------------
Comment(by david):
some ideas:
1. the handler reads {{{error_reporting()}}} and only acts on errors that
would normally occur (use the second argument of {{{set_error_handler()}}}
for this!
1. we have an {{{AgaviPhpErrorException}}}, maybe with subclasses for the
various types (error, notice etc)
1. we'll look at {{{$errcontext}}} and check if there's a {{{$this}}}...
and if yes, we grab AgaviContext etc... then we can at least output a
half-correct error format... even though that's wonky enough since there's
no 100% reliable way to determine where the correct Agavi Context is, and
then there's also the exec container, which is the next problem.... meh...
1. what about various {{{display_errors}}}/{{{log_errors}}} combinations?
--
Ticket URL: <http://trac.agavi.org/ticket/36#comment:12>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets