Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57398 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35470 invoked from network); 17 Jan 2012 13:31:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2012 13:31:43 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-tul01m020-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:53610] helo=mail-tul01m020-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/96-02309-E38751F4 for ; Tue, 17 Jan 2012 08:31:42 -0500 Received: by obcwn14 with SMTP id wn14so2543059obc.29 for ; Tue, 17 Jan 2012 05:31:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=t00JFVZBM8bJeAYNd8Oy0AbvOHJINz3AVLBNvbjAhlQ=; b=GwgdLwGi0yVjAM2/vBR1AxQbZNUwJcQSn5yViyiuKdhvnmyDsXE1ka1cvj4XCYTXlq kHLWIdlArsg/thQnwcRrlqYKjJDE0HhcYGeIyvPJHybYXh1s8uEAerpcxuEUMFHhPKuY cEs2mXG7vMnLzV8br6S94twnT9g7Y11Qr3jSY= MIME-Version: 1.0 Received: by 10.182.16.33 with SMTP id c1mr15015008obd.47.1326807099738; Tue, 17 Jan 2012 05:31:39 -0800 (PST) Received: by 10.182.81.74 with HTTP; Tue, 17 Jan 2012 05:31:39 -0800 (PST) In-Reply-To: References: <4F155351.7030505@php.net> <4F155B73.3060604@php.net> Date: Tue, 17 Jan 2012 14:31:39 +0100 Message-ID: To: Jan Dolecek Cc: Sebastian Bergmann , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Reflection to remove final From: pierre.php@gmail.com (Pierre Joye) As it is not that bad for trunk, I think we should wait a bit before commiting this patch, there are still need for discussions and we should give some time to other people to comment the feature (the implementation is trivial as this stage). Sebastian, mind to revert it until we are done with the discussions? On Tue, Jan 17, 2012 at 2:15 PM, Jan Dolecek wrote: > Sebastian, thanks for the commit. But actually as I see the tests, I > may have not specified it enough: > > ReflectionClass::setFinal(false) removes the final from the class, not > it's methods. > > This test case > http://svn.php.net/viewvc/php/php-src/trunk/ext/reflection/tests/Reflecti= onClass_setFinal.phpt?view=3Dmarkup&pathrev=3D322390 > should have: > > final class a { =A0// class is final > =A0public function b() { // method is not > =A0 ... > =A0} > } > > Thanks > > Jan Dolecek > juzna.cz@gmail.com > > > > On Tue, Jan 17, 2012 at 12:28 PM, Sebastian Bergmann = wrote: >> Am 17.01.2012 12:03, schrieb jpauli: >>> The patch just adds setFinal() to ReflectionClass. >>> What about ReflectionMethod? >> >> =A0From the patch >> >> +/* {{{ proto public void ReflectionMethod::setFinal([bool isFinal =3D t= rue]) >> + Sets/unsets class as final */ >> +ZEND_METHOD(reflection_method, setFinal) >> >> +/* {{{ proto public void ReflectionClass::setFinal([bool isFinal =3D tr= ue]) >> + Sets/unsets class as final */ >> +ZEND_METHOD(reflection_class, setFinal) >> >> >> =A0TL;DR: All is well :) >> >> -- >> Sebastian Bergmann =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Co-Founder and= Principal Consultant >> http://sebastian-bergmann.de/ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 http://thePHP.cc/ >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org