perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M. Chiasson" <>
Subject Re: Filter and Handlers should not reset $@ if it was set before entering
Date Mon, 09 Aug 2004 23:03:43 GMT

Stas Bekman wrote:
>>>Yes, this $@ save/restore logic could be added to filters only. But, 
>>>in the case of a failing response handler & filter handler, you'd lose 
>>>error from the filter.
>>At least, here is a patch that does the same thing, but only for filters.
> The problem with filters is that Apache has no provision for error 
> handling. So may be we should at least Perl_warn it, before restoring ERRSV?

Attached patch moves $@ save/restoring to filter logic only, and does warn
in the case of a filter error detected while there was already another known
error before entering the filter

>>>Maybe we need to be smarter about this a bit and somehow concatenate the
>>>errors ?
> Sounds like a good idea. But may be later.

Something like APR::Error supporting aggregated errors maybe ?

Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5     F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5

View raw message