Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64946 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39644 invoked from network); 14 Jan 2013 19:51:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jan 2013 19:51:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.180 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.220.180 mail-vc0-f180.google.com Received: from [209.85.220.180] ([209.85.220.180:42547] helo=mail-vc0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/38-22727-1D164F05 for ; Mon, 14 Jan 2013 14:51:45 -0500 Received: by mail-vc0-f180.google.com with SMTP id p16so3959980vcq.11 for ; Mon, 14 Jan 2013 11:51:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ddlC5Qzr2g22K+LVFWwyg+jyfttPNt1idek0Je+B1z0=; b=l7M0T33GH5FRWeL+9PWKMcBhR8b5NT7CiV9zfDDvE6NYIzKTVuu5N+eJJkVv35973x aPSao7VS1FyQbZKdTXCKaoB9v65MRPlBFu8y21sSBQ/FIivjxLLNe107JEuUG74RRFQo qvpU+zkQqa3F2m1utW7ko2MiH90eC5dsDvGcvZU43t3wxyXmBHi8xbhg2Zm8wZ5f5NAc geV6lSPVPuWb4OJkecFCUtoMEtzSqlsklgHADRO/IJ2toQ24xHGF8mG8tLuLqzte5oLF Tq9InrUCyVZ4rwm9FsN8kjC56v3gUY4/Qj4dA+WRukWJjUSoJd/RfgE7jIUo8mVAMgl1 PLKA== MIME-Version: 1.0 Received: by 10.52.31.197 with SMTP id c5mr90011757vdi.65.1358193102754; Mon, 14 Jan 2013 11:51:42 -0800 (PST) Received: by 10.58.173.4 with HTTP; Mon, 14 Jan 2013 11:51:42 -0800 (PST) In-Reply-To: References: Date: Mon, 14 Jan 2013 14:51:42 -0500 Message-ID: To: Alexander Lissachenko Cc: Sebastian Krebs , PHP internals list Content-Type: multipart/alternative; boundary=bcaec517c5486d132e04d344f917 Subject: Re: [PHP-DEV] [Reflection] Improve logic of ReflectionMethod->invokeArgs() for static methods From: ircmaxell@gmail.com (Anthony Ferrara) --bcaec517c5486d132e04d344f917 Content-Type: text/plain; charset=ISO-8859-1 Alexander, So, I take the original class, rename it and then create a decorator > class instead of original class with overridden dynamic and static > methods. Method in the decorator should make some specific logic and > then just invokes the original static method with Reflection, but the > scope should be also correct. > I have to ask: *why*? Why are you using static methods like that? It seems to me that you're trying to use LSB to introduce a form of polymorphism where it's not really designed for it... Why not just use instances in this case (which are supported for your use-case)...? Anthony --bcaec517c5486d132e04d344f917--