Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6594 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30007 invoked by uid 1010); 19 Dec 2003 11:01:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 29972 invoked from network); 19 Dec 2003 11:01:00 -0000 Received: from unknown (HELO xaxa.search.ch) (195.141.85.118) by pb1.pair.com with SMTP; 19 Dec 2003 11:01:00 -0000 Received: from localhost (localhost [127.0.0.1]) by xaxa.search.ch (Postfix) with ESMTP id 51E166D84B; Fri, 19 Dec 2003 12:01:00 +0100 (CET) Received: by xaxa.search.ch (Postfix, from userid 65534) id 4F57D6D8B1; Fri, 19 Dec 2003 12:00:59 +0100 (CET) Received: from cschneid.com (ultrafilter2-i [192.168.85.3]) by xaxa.search.ch (Postfix) with ESMTP id ABCC06D84B; Fri, 19 Dec 2003 12:00:58 +0100 (CET) Message-ID: <3FE2DA69.8060305@cschneid.com> Date: Fri, 19 Dec 2003 12:00:57 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030626 X-Accept-Language: de-ch, en-us, en MIME-Version: 1.0 To: Mike Ford Cc: PHP Internals List , 'Andi Gutmans' References: <841D90E489448A4F804E1D1B95768BF7D462F7@lis-exchange3.lmu.ac.uk> In-Reply-To: <841D90E489448A4F804E1D1B95768BF7D462F7@lis-exchange3.lmu.ac.uk> X-Enigmail-Version: 0.76.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on xaxa.search.ch X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.61 X-Virus-Scanned: by AMaViS 0.3.12pre8 Subject: Re: [PHP-DEV] error_handler From: cschneid@cschneid.com (Christian Schneider) Mike Ford wrote: > How about a new optional 2nd argument to set_error_handler? Sounds like a good idea to me. Could be the mask of errors one wants to get in the error handler. So one could do set_error_handler("handler", E_ALL); # Default, current mode set_error_handler("handler", error_reporting()); # Honor settings set_error_handler("handler", ...); # Custom mode BTW: I think the documentation/examples to error_reporting() should explain leaving out the parameter to not change the level and just get the current level back. Opinions? - Chris