Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86043 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40999 invoked from network); 29 Apr 2015 23:32:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2015 23:32:52 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.174 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.174 mail-pd0-f174.google.com Received: from [209.85.192.174] ([209.85.192.174:36108] helo=mail-pd0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/82-29050-42A61455 for ; Wed, 29 Apr 2015 19:32:52 -0400 Received: by pdea3 with SMTP id a3so42125864pde.3 for ; Wed, 29 Apr 2015 16:32:49 -0700 (PDT) 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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=rRXSKHc7zU/sbxy7Z7tjTs2lk4aQoLSd5s0RdNKUHBg=; b=fJyTxVw4cSIIVwRlh02lkmKY7r8A5qLjuYQ28VZv0ak4fnfp/ltlQnN6ovsXnZA9y0 Bi3llsTynD61GswR3qDxg7lvntmD+jbaq7v7vT36bnpLB1GGQd7r9Nqyk0X+QnCsgC/6 4deQJJmsHlx/Ac6UJrpgWbz/5+n1ore08l2CMMhhrgQLktmrQ3Xahg7J/zVX1T0gZnZI KIJyiOKTmuWP7LTwBfApvl0Ll0AEMQgGdLTK5PLKQ5GJxCxTSwZTnBZYlgz9k5cVW5vJ p9JCuebglmZoKz2c2t2Og1W9QOyGKTxLpiBuDu6vlt83ByAMj5Xu38UGt4PDe6afBV6B fC9Q== X-Received: by 10.66.129.174 with SMTP id nx14mr2785945pab.12.1430350369398; Wed, 29 Apr 2015 16:32:49 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id k8sm270649pbq.51.2015.04.29.16.32.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Apr 2015 16:32:48 -0700 (PDT) Message-ID: <55416A09.50907@gmail.com> Date: Wed, 29 Apr 2015 16:32:25 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Patrick ALLAERT , Kalle Sommer Nielsen CC: Olivier Garcia , PHP Internals References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC][VOTE] Improved Error Callback Mechanism From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > The issue targeted here is "two extensions overriding php_error_cb can't > live side by side" and that issue exists since PHP 4.0. Should a bug report > be opened? I'm not sure why can't they live side by side. Of course, if the override is made in incompatible manner, they can't, but the same is true with proposed API - i.e., one extension can boot all other extension's hooks with zend_clear_error_hook, potentially breaking all other extension's functionality. > We believe that having an extension that additionally hooks in the error > handler mechanism (aside Xdebug) would be of a great help to migrate from > PHP 5.x to 7.0. While I agree with the first part, I'm not sure what makes it vital for 7.0 - as it doesn't introduce BC breaks, is this really important to have it in major version? Also not sure how it would help migration - if anything, new API means *more* work when migrating, not less. -- Stas Malyshev smalyshev@gmail.com