On Thu, 27 May 2004, Lenar Lõhmus wrote: > >> It's backwards compatible with previous functionality, i.e. if you don't > >> return anything, the default handler does not get invoked. > > > > This argument may overrule my preference, of course. > > Since error_handler is called from inside PHP engine, there should be no > noticable BC problem. Only the case when developer calls his function > directly too and does so in if/while/etc might be problem. But I don't > think this is showstopper.
Of course there is a BC problem. Current error handlers do not have to return anything. Once the patch is added, the default handler will all of a sudden be invoked, when the developer did not really mean it. I realize that the "convention" is to return false if you didn't process it, but in our case we have to invert it. - Andrei -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php