Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57394 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28623 invoked from network); 17 Jan 2012 13:08:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2012 13:08:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=juzna.cz@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=juzna.cz@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: juzna.cz@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:50506] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 85/25-02309-BB2751F4 for ; Tue, 17 Jan 2012 08:08:11 -0500 Received: by ggnq4 with SMTP id q4so1041697ggn.29 for ; Tue, 17 Jan 2012 05:08:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=lExnlm1d0jiPYLzLJMTzKK38OQ16mOEhrD5TUt65rSA=; b=X2ulISueswB6oIfTuVC6DSgoIumNF6IjUsUThy1ERlTifQNcKSO3/ijnl21Rx1o4va dt0BDOsBfwSJWa9rWKtGXqi+ZiN/kfWV70PsV88F55kKCio1CrW8tTm3jMaTPwFXMMLH kY+rJixIo4QcX/0xBo/ue3AIaENcEZa64WwAE= Received: by 10.50.161.135 with SMTP id xs7mr14843093igb.15.1326805688179; Tue, 17 Jan 2012 05:08:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.203.81 with HTTP; Tue, 17 Jan 2012 05:07:47 -0800 (PST) In-Reply-To: References: <4F154BCE.4090000@php.net> Date: Tue, 17 Jan 2012 14:07:47 +0100 Message-ID: To: Ferenc Kovacs Cc: Laruence , Sebastian Bergmann , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Reflection to remove final From: juzna.cz@gmail.com (Jan Dolecek) Yes, there always is a reason. But when we test and create mocks, this reasons can go aside. This is the same with ReflectionProperty::setAccessible() etc. They shouldn't be used normally, but in special cases like testing it's necessary. Jan Dolecek juzna.cz@gmail.com On Tue, Jan 17, 2012 at 2:01 PM, Ferenc Kovacs wrote: >> >> if a class is marked as final, there must be some reason for it to be a >> final. >> >> if you remove the final and extends it, may lead to bad error. >> >> > reflection should always be used with care. > > -- > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu