Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63172 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11704 invoked from network); 19 Sep 2012 18:37:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2012 18:37:06 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:60618] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/F2-15057-1D01A505 for ; Wed, 19 Sep 2012 14:37:05 -0400 Received: by lbbgp3 with SMTP id gp3so1466179lbb.29 for ; Wed, 19 Sep 2012 11:37:02 -0700 (PDT) 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=FyLZqa9CdHC2j6kyn/a5pKNCPyzUITztjke+hAaddus=; b=ZnxLEsz13Uu7sj8kyA73xnQRq2gOQDfsG2BcySfDZenmysf+biC/k+eyeaYDIWlAAe MOjmlKKbSs4eH2yFSyPVr8yBXxvcibiyRkXkytBFq9zBrsQvIVd9tjdt8Oz7NwSka5P5 icHdDR6DeOyZZWFskheRWQKhX8ZAkPeyhafNemGN9v7qxCFMv86EQQSddEShRQKS1Wzr KvZOCYPLqhARjJwIQcRy5ybXawkOz4vT8vMidwZc6hEYBYug0ngsKAB/Eh2vbq+Lxw5i 0lri75IOaiv+traQXBz/3XjZqbp4tjRuhtbizsTVhdJwesLKe0mQ3zBfU3eNIRKYb/hp u3mw== MIME-Version: 1.0 Received: by 10.152.162.10 with SMTP id xw10mr3375748lab.12.1348079822473; Wed, 19 Sep 2012 11:37:02 -0700 (PDT) Received: by 10.152.41.33 with HTTP; Wed, 19 Sep 2012 11:37:02 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Sep 2012 11:37:02 -0700 Message-ID: To: jpauli Cc: PHP Internals , Rasmus Schultz , Amaury Bouchard Content-Type: multipart/alternative; boundary=f46d042f92ecf289f804ca124a7f Subject: Re: [PHP-DEV] constructor hook From: kris.craig@gmail.com (Kris Craig) --f46d042f92ecf289f804ca124a7f Content-Type: text/plain; charset=ISO-8859-1 On Wed, Sep 19, 2012 at 10:34 AM, jpauli wrote: > > On Sep 19, 2012 4:31 AM, "Kris Craig" wrote: > > > > On Tue, Sep 18, 2012 at 8:14 AM, Amaury Bouchard > wrote: > > > > > Sounds to me like aspect-oriented programming, applied to object > > > construction. > > > Take a look at: https://github.com/AOP-PHP/AOP > > > > > > > > Yeah I wasn't aware of this, either, but I can think of several scenarios > > in which it'd be useful. I know this is PECL, but is this something > that > > might be worth bundling? I'm still a bit new here so if that idea's > heresy > > please let me know. If not, that would be a nice feature to have on a > > default installation I think. Thoughts? > > Why not, 2 solutions here : > - Bundle it with PHP sources > - Merge it with core (trunk) > > I think that it may need more code to bind AOP functionnalities to > Reflection though. > > Anyway, an RFC will be needed ;) > > Julien.Pauli > Agreed. --Kris --f46d042f92ecf289f804ca124a7f--