Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62026 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22565 invoked from network); 3 Aug 2012 23:16:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2012 23:16:38 -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 74.125.82.170 cause and error) X-PHP-List-Original-Sender: sv_forums@fmethod.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:47448] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F9/B5-23476-5DB5C105 for ; Fri, 03 Aug 2012 19:16:37 -0400 Received: by weyr1 with SMTP id r1so893659wey.29 for ; Fri, 03 Aug 2012 16:16:34 -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:content-transfer-encoding:x-priority:x-msmail-priority :x-mailer:x-mimeole:x-gm-message-state; bh=hbFq5tE3Dwa2jeXTId2s8alOV0E+RJeCsyKvOSE9DFg=; b=aUA8TJy6V3TZl2S/AAIicEmpeVMAmxva+S5i1YoSybaVICKAH17mbPJN95+p19zE2O JNLKrS9yG43EUNubwLgaDHcs9Xu6dPKC1L95gywWSnh36W1iuY7tWLAMJausLbBvEKaC mtyVmXelnH3GjlM/3WbrShHV4DrFaNHqjRPblzZNd4/LT2sZkyXVTmabdMkykSVomoRJ hUOYz/64cj5MDNZ4HJ8enB+XVzlkhVgnmTKe5fJlqDY1nZWw2iurK/WG+cTGpoMQTXpq CxZWH5BzvRh3Qh7tIvOLSYSwTjL22FDtvg5lrfbILYepxnUxiSeV6sAQn0GMFUeWRW1k qr/w== Received: by 10.180.14.34 with SMTP id m2mr7864532wic.21.1344035794012; Fri, 03 Aug 2012 16:16:34 -0700 (PDT) Received: from pc (87-126-4-134.btc-net.bg. [87.126.4.134]) by mx.google.com with ESMTPS id l6sm26626618wiz.4.2012.08.03.16.16.31 (version=SSLv3 cipher=OTHER); Fri, 03 Aug 2012 16:16:33 -0700 (PDT) Message-ID: <6214E40C106D49398CC920D8587815B4@pc> To: "Nikita Popov" , "Ferenc Kovacs" Cc: "PHP Internals" , "Andrew Faulds" , "Etienne Kneuss" References: Date: Sat, 4 Aug 2012 02:16:29 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit 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: ALoCoQn7HdPsgnmIJlFIUNO4+KQ/yrnm1KL+Qlk+tNz9RlXzoHHsKClpTQWPRuaWJf8d4Z4sBdbm Subject: Re: [PHP-DEV] Error handling brainstorming From: sv_forums@fmethod.com ("Stan Vass") When I said I'd like to see E_STRICT be fatal/exceptions it wasn't a typo. My choice isn't based as much on what the current error severity is, or what the error severity is supposed to represent in general, because I've found in PHP often the error severity has no connection with the error that's being reported. So I decided this by observing the real-world errors that use a certain severity. Many warnings and all E_STRICT errors clearly point to bugs in the code, wrong method signatures, non-existing variables and constants being used, which can easily do actual data damage if the script keeps running in undefined state (even if the engine is just fine with it). PHP should not split the language semantic into loose, less loose and strict, there should be just one set of semantics: the PHP semantics, and when code does something that doesn't fit, it shouldn't be an ignorable warning. I've found this speeds up the development process, keeps bug count down and protects the site/app's data in case of bugs. Stan