Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81309 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72822 invoked from network); 28 Jan 2015 15:49:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2015 15:49:55 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wg0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:54289] helo=mail-wg0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/31-44076-22509C45 for ; Wed, 28 Jan 2015 10:49:55 -0500 Received: by mail-wg0-f48.google.com with SMTP id x12so21360177wgg.7 for ; Wed, 28 Jan 2015 07:49:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=YkvYKtYKwbZ1e7UQKPBrF88IHtiy6PfRdyKHRyWwOTo=; b=vA+1Gy51J3rBM8kwhiQHBRebWsBDNRrQk6u2Nofl93nhNMJ0btSRxqET8bG9HAjiZL J+eIjcaoRhQsR8wlzYDA92KYJPaCkSvCSMwmY5J4nWOFtN0YECrSuJfreA/NOiwPFjJj wUadq58gqUciT5FPZ7KDqRMMQ2rcDBeKvpI/DS2xTr8V2vXQn4X7ey1Qe1ki6eeWQYo4 9PgUBcq8c8bS36i73VOiQr34ZvkjP3jI3zvaUqEGOJen+CvnJ62SGoXuF9eIfHcsS4kd Y7FaToTAcACZ2Df63Mz/1y8ydsqvYBpVIVWoNl8iulYmDS/jkRCwcQ9aFAug/Zw/oEA+ tebQ== X-Received: by 10.194.190.39 with SMTP id gn7mr8931513wjc.30.1422460189882; Wed, 28 Jan 2015 07:49:49 -0800 (PST) Received: from [192.168.0.172] ([62.189.198.114]) by mx.google.com with ESMTPSA id hl1sm6631678wjc.18.2015.01.28.07.49.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jan 2015 07:49:49 -0800 (PST) Message-ID: <54C90500.1010109@gmail.com> Date: Wed, 28 Jan 2015 15:49:20 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: PHP Internals References: <54C80F4F.7020905@gmail.com> <011d01d03ab7$dd725c30$98571490$@tekwire.net> <54C8BE99.8070109@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Proposal: Raise severity of undefined constants From: rowan.collins@gmail.com (Rowan Collins) Ferenc Kovacs wrote on 28/01/2015 12:13: > > ok, I was assuming that by turning it into E_RECOVERABLE_ERROR you > would still keep the assuming string behavior if there is a custom > error handler which returns true for this error. I'm undecided on whether the string value or null would make more sense, and listed both possibilities in my original post: > Proposed behaviour: an E_RECOVERABLE_ERROR is issued; if the error is caught, either the existing string behaviour could be retained, or the value could be treated as NULL. (I'm open to other alternatives.) Returning null would probably allow the engine code to be simplified, but returning the string would allow people to write compatibility layers using a custom error handler. Regards, -- Rowan Collins [IMSoP]