Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6603 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27683 invoked by uid 1010); 19 Dec 2003 15:00:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27659 invoked from network); 19 Dec 2003 15:00:37 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 19 Dec 2003 15:00:37 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.10/8.12.10) with ESMTP id hBJF0Y6g021331; Fri, 19 Dec 2003 16:00:34 +0100 Date: Fri, 19 Dec 2003 16:00:34 +0100 (CET) X-X-Sender: derick@localhost To: Christian Schneider cc: Daniel Convissor , PHP Internals List In-Reply-To: <3FE30E95.5090707@cschneid.com> Message-ID: References: <841D90E489448A4F804E1D1B95768BF7D462F7@lis-exchange3.lmu.ac.uk> <20031219141634.GA27956@panix.com> <20031219142636.GB27956@panix.com> <3FE30E95.5090707@cschneid.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] error_handler From: derick@php.net (Derick Rethans) On Fri, 19 Dec 2003, Christian Schneider wrote: > Daniel Convissor wrote: > > On Fri, Dec 19, 2003 at 03:20:17PM +0100, Derick Rethans wrote: > > > >>It is when it's optional and the default is the current behavior. > > > > Pardon me. Looks like PHP 3 behavior is still stuck in my brain... > > No, you were right. A script using > set_error_handler("handler", error_reporting()); > will get "Wrong parameter count for set_error_handler()" for PHP4. > > So you force people to lock their code to PHP5 if they want to use the > new semantics. Not good for migration. This is not called backwards compatibility, but forwards compatibility. Don't worry about this, as PHP wasnever really forwards compatible anyway. Derick