Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24383 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94449 invoked by uid 1010); 14 Jul 2006 23:57:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94434 invoked from network); 14 Jul 2006 23:57:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jul 2006 23:57:39 -0000 X-PHP-List-Original-Sender: cellog@php.net X-Host-Fingerprint: 66.79.188.205 unknown Linux 2.5 (sometimes 2.4) (4) Received: from ([66.79.188.205:52322] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id F9/D9-41830-07F28B44 for ; Fri, 14 Jul 2006 19:57:37 -0400 Received: from mail.bluga.net (mail.bluga.net [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 3187327CAA; Fri, 14 Jul 2006 16:57:34 -0700 (PDT) Received: from [192.168.0.107] (CPE-24-208-77-184.neb.res.rr.com [24.208.77.184]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id E1CAB27C98; Fri, 14 Jul 2006 16:57:33 -0700 (PDT) Message-ID: <44B82F69.8080808@php.net> Date: Fri, 14 Jul 2006 19:57:29 -0400 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sean Coates Cc: internals@lists.php.net References: <0F.C0.46743.0CB15B44@pb1.pair.com> <44B7AA42.9060305@caedmon.net> In-Reply-To: <44B7AA42.9060305@caedmon.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] E_STRICT From: cellog@php.net (Greg Beaver) Sean Coates wrote: > Ilia Alshanetsky wrote: > >>Why not just define your own custom error handler and have it filter out >>the error messages that you don't want to see... To me this would seem >>like a easier approach, i would be against adding a in-language filter >>for this. > > > Inability to easily determine which errors come from which version of > PHP (in userspace, or otherwise) aside, E_STRICT can't always be handled > at runtime. > > I can't think of a situation in 5.1.x where this is the case, but in > 5.0.x, the use of 'var' (instead of public|private|protected) caused an > E_STRICT at compile-time: before a userspace error handler could have > been registered. > > ... admittedly, this is abnormal, but I think we should keep it in mind > anyway. This is not entirely accurate. A userspace error handler can catch E_STRICT during parsing of included files and eval(). This is how we make install-pear-nozlib.phar work with our PHP 4/5 compatible PEAR files. Greg