Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62032 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41419 invoked from network); 4 Aug 2012 04:02:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2012 04:02:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=sv_forums@fmethod.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sv_forums@fmethod.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fmethod.com from 209.85.212.176 cause and error) X-PHP-List-Original-Sender: sv_forums@fmethod.com X-Host-Fingerprint: 209.85.212.176 mail-wi0-f176.google.com Received: from [209.85.212.176] ([209.85.212.176:58995] helo=mail-wi0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/78-23476-FDE9C105 for ; Sat, 04 Aug 2012 00:02:40 -0400 Received: by wibhn17 with SMTP id hn17so89263wib.11 for ; Fri, 03 Aug 2012 21:02:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:from:to:cc:references:subject:date:mime-version :content-type:x-priority:x-msmail-priority:x-mailer:x-mimeole :x-gm-message-state; bh=W+5NBuiowy2+7qWx/QPH8zT22e/sfryPsYf+1cM6gkQ=; b=betFus94O8RUHJ4OVE9DAomJKdAcRcpikfS21gtfZ1pQQfX0OVF9H5WfmyjGiTJhjD 73RIHxWBJLR7Q3zM1TQwQj/gUAzXOsmMW4k5mAGanjMLA/6Y1NG9aBfS7L4/j3Ikbiiz MTP6JTgQaJCrMfxeY+9/mZHnD8Ouhjhr1B/y+sFJ8EZdmk0XfU+xrhv/C8T6fiwi1yHd qM4xcKjlIGeHTaSJvIOQc3kF0F+z7rn3XgwcSMUIABhI9+T85FjfmHxItz0ZHA5n253i VgXveKRAmnfCI3b9wQpDI5Tw0oJAKKVsmd74gFj78K/io9nG/L7gG9UShTkKm0qdbHwE +Sqg== Received: by 10.216.116.73 with SMTP id f51mr2039388weh.50.1344052956482; Fri, 03 Aug 2012 21:02:36 -0700 (PDT) Received: from pc ([46.10.0.87]) by mx.google.com with ESMTPS id fu8sm853022wib.5.2012.08.03.21.02.33 (version=SSLv3 cipher=OTHER); Fri, 03 Aug 2012 21:02:35 -0700 (PDT) Message-ID: <600F7B5AAF5744B695DBFD7E81A0C6AA@pc> To: "Ferenc Kovacs" Cc: "Nikita Popov" , "PHP Internals" , "Andrew Faulds" , "Etienne Kneuss" References: <6214E40C106D49398CC920D8587815B4@pc><250022DBD6DE4F50BBAD1CB655909382@pc> Date: Sat, 4 Aug 2012 07:02:31 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0022_01CD720F.1DDC86C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Gm-Message-State: ALoCoQm3sCTv00t+xWw9QHFQrzuf4tOg8bdUpSamtmV1/gv1b4RA5JCtbQD1a4ZPKSM1glsmswBt Subject: Re: [PHP-DEV] Error handling brainstorming From: sv_forums@fmethod.com ("Stan Vass") ------=_NextPart_000_0022_01CD720F.1DDC86C0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable if we turn E_STRICT to behave exactly as E_ERROR there is no point = keeping the E_STRICT level. personally I disagree with turning something which was a pedantic = notice in one version into an unsupported feature which fatals out if = you try to use it in the next. maybe E_STRICT->E_DEPRECATED->E_ERROR I do think there's no point keeping the E_STRICT level. In fact, there's = no point keeping any level except=20 - E_WARNING (strictly for developer "tips" like deprecated = functionality, and not for say division by zero errors or Stream I/O = errors like it is today); - E_ERROR (everything that's not a developer "tip" but an error, should = be this type, not a notice/warning/strict); - E_FATAL_ERROR (direct script halt).=20 That's just how I see it. Today we have these instead: - E_ERROR - E_WARNING - E_PARSE - E_NOTICE - E_CORE_ERROR - E_CORE_WARNING - E_COMPILE_ERROR - E_COMPILE_WARNING - E_USER_ERROR - E_USER_WARNING - E_USE_NOTICE - E_STRICT - E_RECOVERABLE_ERROR - E_DEPRECATED - E_USER_DEPRECATED Most of those have no reason to exist and especially they have no reason = to be exposed as different severities at the user level. It seems like = the severity levels have become a poor man's error *type* codes, which = are needed, and at much more granular level, but as this is a severity, = that's not the place to differentiate them. I never spoke about E_STRICT going fatal in the next version of PHP. I'm = saying this in the context of my advice about using an error handler. I = do this in my error handler (not just development, but also production), = but still I think it could be a nice long-term goal to cleaning up PHP. Stan ------=_NextPart_000_0022_01CD720F.1DDC86C0--