Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88921 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35658 invoked from network); 22 Oct 2015 16:01:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Oct 2015 16:01:06 -0000 Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.194 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.212.194 mail-wi0-f194.google.com Received: from [209.85.212.194] ([209.85.212.194:34259] helo=mail-wi0-f194.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/22-18485-24809265 for ; Thu, 22 Oct 2015 12:01:06 -0400 Received: by wicuk10 with SMTP id uk10so20105291wic.1 for ; Thu, 22 Oct 2015 09:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=VenDOOEs2ibRXvxBaYrYByktwIGZv+OqYTYjFtR2hYo=; b=SKA3pZluYj1B6Kcqe0aR/Ch364Kxs9qXGrlBpTx8kj90XcgZgdsxOjfVh2Ab4NMcAG b6/qg5t4LJbLRvy5j2rVk42Wb38AOmDalJvd2VePKbSF8HNb7Xsb4kUxL9ya9yEStIzq 9+E9LaEwbA8v+3pjC4MbjnN5sZhjfmSTIBqKeWcB0HmGPs+xu9bUv57Azj1Ez3SJ0Mng yJyLP1YvWg8jdYWX+SuVrSxVJKuDeXHYjiLhUTT9dpir4ei2Lev/fHjA7+EUR/dgl5ye cvBYv13a0p+R/jc3F89mrJ3DXAtbs/LRSazK3KeTOo5p+bi7w5fSJxZ1NPFjvaI6H8GO WDOA== MIME-Version: 1.0 X-Received: by 10.194.175.232 with SMTP id cd8mr19970051wjc.45.1445529663438; Thu, 22 Oct 2015 09:01:03 -0700 (PDT) Sender: kalle.php@gmail.com Received: by 10.28.128.81 with HTTP; Thu, 22 Oct 2015 09:01:03 -0700 (PDT) In-Reply-To: References: <01f001d1052b$bed5cbb0$3c816310$@belski.net> <022301d1053b$06a91a50$13fb4ef0$@belski.net> <02c801d10588$9009fd80$b01df880$@belski.net> Date: Thu, 22 Oct 2015 18:01:03 +0200 X-Google-Sender-Auth: duTK_-c1PJd7ZS8S8rJG1TjrAxs Message-ID: To: Julien Pauli Cc: Alexander Lisachenko , Nikita Popov , Anatol Belski , Xinchen Hui , Dmitry Stogov , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: Forbid rebinding scope of closures created by ReflectionFunctionAbstract::getClosure() From: kalle@php.net (Kalle Sommer Nielsen) 2015-10-22 17:48 GMT+02:00 Julien Pauli : > This is very tricky use case IMO. > > We should absolutely focus on stability, and if we can't find a way to > make things safe, we forbid them > for the stability sake. If there are no way to have stable things, > well, that's pitty but it's like that. > > We can't allow PHP to release with a known crashing behavior. I can only second this, we had a similar issue with closures and $this in 5.3 which wasn't properly resolved until a later version, I think it was 5.4. We're at RC5 now and stability is an absolute must for us to have a proper release of our next major. Rather leave behaviour we don't have a proper solution for disabled for now until we can come in with a proper patch to avoid additional hacks in the code that will become even trickier to handle once the issue is resolved. -- regards, Kalle Sommer Nielsen kalle@php.net