I must admit that I think it's kind of ugly to be able to reset it by using "" but as this seems to be the existing behavior (I guess the person that added the callable support missed this part), I'll apply the patch.

Thanks,

Andi

At 11:44 PM 10/11/2004 -0700, Robert Silva wrote:
The problem is that set_exception_handler allows you to reset the handler by
passing an empty string as argument. It did not check to make sure it was a
string before checking strlen, therefore when passed an array, it assumed
the user was resetting the handler. This patch only resets when an empty
string is passed in (an array will set a new handler).

Bob Silva


-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to