Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62435 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11158 invoked from network); 23 Aug 2012 20:20:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Aug 2012 20:20:50 -0000 Authentication-Results: pb1.pair.com header.from=g.b.yahav@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=g.b.yahav@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: g.b.yahav@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:53828] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/C5-19512-1A096305 for ; Thu, 23 Aug 2012 16:20:50 -0400 Received: by vcbgb30 with SMTP id gb30so1496112vcb.29 for ; Thu, 23 Aug 2012 13:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=M23qoEElJ8EOBfijJQ7a0pgdQDuV/7EfoCulNA7HxlU=; b=IUDoEZx8nvP4YwLauMvTbhRZ0n4dNa70TOfNXgA4/RAa1BdJ58ZqNiHWtHzSqAoXqM fbnSPaf0l3v7tQq7mrVgZPyLA53MUkVVLJFvsAJTpt8DNcyV4xLiwu1RFZrNKxYys0Fx iR99YrlZkdPNH1Y5rNwHxGxV7ME04jzJlkvk0B3H2UuCLy4ddNFh9oAArayry1j/+/6Y +1x3+oj83V1GuvL1YD4RbJesRB2OZN8TgHXaE4EP5eGH8gv9RL+RTNwDW2LMJ/PslA3n iO+Vy3IoJTwOHmCGLqQjO9yGAHk7swMYT1aLPtlhFzG67TDleeVtpP8vOWvNra/69gzp CPHA== Received: by 10.220.153.142 with SMTP id k14mr2460372vcw.7.1345753247042; Thu, 23 Aug 2012 13:20:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.109.230 with HTTP; Thu, 23 Aug 2012 13:20:26 -0700 (PDT) In-Reply-To: <50368E58.9080606@ralphschindler.com> References: <50368E58.9080606@ralphschindler.com> Date: Thu, 23 Aug 2012 23:20:26 +0300 Message-ID: To: Ralph Schindler Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d043085c43ecbc904c7f49860 Subject: Re: [PHP-DEV] Aspect Oriented Programming in PHP From: g.b.yahav@gmail.com (Yahav Gindi Bar) --f46d043085c43ecbc904c7f49860 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Aug 23, 2012 at 11:11 PM, Ralph Schindler wrote: > I've started using this extension on a personal project. So far, I really > love it. If the performance aspects of it remain minimal, and the syntax > remains simple/non-complex, I can see this as a component that would > benefit many by being included in core. > > -ralph > > > On 8/23/12 11:16 AM, Pierre Joye wrote: > >> hi, >> >> On Thu, Aug 23, 2012 at 4:36 PM, Peter Nguyen wrote: >> >>> Hi, >>> >>> AOP (http://en.wikipedia.org/wiki/**Aspect-oriented_programming) >>> when used >>> correctly, can make your application really modular. I've seen several >>> implementations but they all require compiling of code beforehand. There >>> is >>> however a PECL extension now (https://github.com/AOP-PHP/**AOP) >>> that enable >>> AOP in PHP directly. I was wondering if there are any >>> interests/possibility >>> to include AOP into the PHP core? >>> >> >> http://pecl.php.net/package/**AOP >> >> looking for feedback, contribs, etc. >> >> For the record here :) >> >> Cheers, >> >> > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > I like it too :), though I think that we shall improve it and at least give user the ability to disable the hooking option (for example, any class dealing with payment would like to do that). In addition, I think that the hook syntax has to be changed into the "call_user_func" one (instead of... "$obj->foo()" do array($obj, 'foo') ) Cheers! :) --f46d043085c43ecbc904c7f49860--