Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97973 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9468 invoked from network); 26 Jan 2017 18:28:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2017 18:28:03 -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.178 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.178 mail-pf0-f178.google.com Received: from [209.85.192.178] ([209.85.192.178:35230] helo=mail-pf0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/81-28703-2BF3A885 for ; Thu, 26 Jan 2017 13:28:03 -0500 Received: by mail-pf0-f178.google.com with SMTP id f144so67011823pfa.2 for ; Thu, 26 Jan 2017 10:28:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=T72pUI+1vwlKcaMCNzHSp/45yg12KoGXXaina4Alz5I=; b=tcnYrf8MnZYzxDQwQ+htDWrStxRRkUyQNIxLo+y5QQYOBYK9tQd1O+msJaoLxTtbdC 43SFUvQZj1rgEplJK8eEzWcojR2iT31BW33SJSC0+DZSX2xgVV6d7VSpXoHsUY1WqgAH IBjxpjaGbhptvHZHB26i3IYaYf65hjRX5fHoiU3h9MJPA0+fvhfrT1sy5IizwC7VVtQ/ B+jg6q+nLTvOQi+KNrDUbbuFMHCzF6h4WDPMEXdun5bF4qh7m+NhD68WGSUgvq2Mcu2V BAhHsrSBLmdGAuA3bUQ0dwR2ijTupSn96uzMjs01ubcSURwad0EPc/ACOgKDRMm7gCrU Ai1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=T72pUI+1vwlKcaMCNzHSp/45yg12KoGXXaina4Alz5I=; b=ILiZMp2739ANyuQjBvgAuWRzeL19zxueQOUuJ6ucdMf5aUOiEjPTK38OeIUUd53Sxh RWpwxz0ZjqpVsmQ9RtbrYktgmCm8BGy56rKc8E058XURbjKCUZ5tqCIuM/Vtqh7pvWeX 7iEGbMWlD9oSmoD0R8NHSEEVw0I/68MDI86/UXLcc2GhDglLQ4IUBSCQF0XJLPJaf4ds tTeYKdoaZem9aEpoKhs4RUbVuxKurvehCPYd6MmdZAWcb7Zu1etZCFHw/PG3XgK/cZ6/ VApQN40my5nPBzvZK6a0LuOeR/Ee7ElDxytMWxWEdKREeql4sMMtESW4lzTLYZT8shWL hZEg== X-Gm-Message-State: AIkVDXK3GXKoeRrAEEi4fEIWoLhJJ4ctLMFaw+e/3ZZ/Z0gDRWndlz7lNtQd6PulJpCL9A== X-Received: by 10.98.131.136 with SMTP id h130mr4689897pfe.4.1485455279727; Thu, 26 Jan 2017 10:27:59 -0800 (PST) Received: from Stas-Air.corp.wikimedia.org (tan2.corp.wikimedia.org. [198.73.209.2]) by smtp.gmail.com with ESMTPSA id b10sm5065382pga.21.2017.01.26.10.27.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jan 2017 10:27:59 -0800 (PST) To: Nicolas Grekas , Nikita Popov References: Cc: PHP internals Message-ID: Date: Thu, 26 Jan 2017 10:27:57 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 7.2 From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > BUT, it would great to fix the inability of __toString to throw in 7.2 also. That might be a bit harder to do. __toString does not throw because it's used in many contexts inside the engine where you can't just drop what you're doing and start processing the exception - like in the middle of function accepting parameters, or in the middle of calculating the expression, in the middle of executing a function call, etc. I'm not saying it's impossible to do, but it would require adding a lot of very carefully written code so that interrupting whatever the engine was doing is safe, and even then not clear what to do with extensions which won't have this code. -- Stas Malyshev smalyshev@gmail.com