Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62015 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90326 invoked from network); 3 Aug 2012 16:36:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2012 16:36:28 -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.215.170 cause and error) X-PHP-List-Original-Sender: sv_forums@fmethod.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:33504] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/20-23476-B0EFB105 for ; Fri, 03 Aug 2012 12:36:28 -0400 Received: by eaal11 with SMTP id l11so1621eaa.29 for ; Fri, 03 Aug 2012 09:36:25 -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=rQtW/w5sBt125pj7a9kmX4IlXS5aw5jjsoN/FLHMHBI=; b=RFKZzQ4I8wNFCHcrmsggx+sP70iy9N9fqKqhc6EvUS/Mdw7eMr0jgM/Y+evPiwOKEK 3BzaHN3Z+XMHXWdSyenoMu5xJqvkkMMAbALQ8Ew/XyiCK4pjH6L5SYD8IcQN2W0Mz3Gp M0iy4PIgrAnatV4AgFOWRtqfPpEYRczthATTLTHUfw/LNO16q7jk6EcgCtKUoLm2cIDE fdRw2ERqcED6jPl3VJuXsBoRZpzTjnk6Jcdj489+2P8ohdMMPheLuSluJcUFVD5q4Xm2 yEOGZhIhGzJgbm0nO+W1WbPhKu1IV25TmmtF3bgdRF3LA5UkiX3SK3D/8ROEYoaKn5XL QpYw== Received: by 10.14.214.196 with SMTP id c44mr2926483eep.7.1344011785326; Fri, 03 Aug 2012 09:36:25 -0700 (PDT) Received: from pc (87-126-4-134.btc-net.bg. [87.126.4.134]) by mx.google.com with ESMTPS id s8sm27006936eeo.8.2012.08.03.09.36.22 (version=SSLv3 cipher=OTHER); Fri, 03 Aug 2012 09:36:24 -0700 (PDT) Message-ID: <944663651AFB476E850E2F1AC1CD51B4@pc> To: "Ferenc Kovacs" Cc: "Leigh" , References: <3F2B7A4F937D4FA9A1CE88818CBCEB1D@pc> Date: Fri, 3 Aug 2012 19:36:21 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0047_01CD71AF.42714F30" 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: ALoCoQkWse3ixw9aEZMvHvo8RbMunJD98gtCacscB7dZYSUegaLjb5C2tsFyp6nhRB7LVfxHdbI4 Subject: Re: [PHP-DEV] Why do disabled functions / classes generate a WARNING. From: sv_forums@fmethod.com ("Stan Vass") ------=_NextPart_000_0047_01CD71AF.42714F30 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable a php function/operation can raise more than one warning, how would = you handle that? with exceptions you would only get the first one. another issue is that with the current error handling model a call can = trigger a non-fatal error and still return some data. with exeptions you can't do that. so changing our internal error handling isn't as easy to start = throwing ErrorException-s, it would require much more workthan that. Yes it is a bit more work than that. For example include issues two = errors on include failure, I mute one of them and turn the other into an = exception, which is one of the behaviors you've mentioned. There are = ways to fix everything, but you have to be specific, if you want me to = be specific as well. Either way I'm trying to give a practical solution you can implement = today. Aside from practicality, I do also support the idea that = accessing disabled symbols should be a fatal error, not a warning. Stan ------=_NextPart_000_0047_01CD71AF.42714F30--