Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68360 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40879 invoked from network); 2 Aug 2013 16:47:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2013 16:47:43 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.175 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.128.175 mail-ve0-f175.google.com Received: from [209.85.128.175] ([209.85.128.175:35039] helo=mail-ve0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/49-24726-EA2EBF15 for ; Fri, 02 Aug 2013 12:47:43 -0400 Received: by mail-ve0-f175.google.com with SMTP id oy10so911729veb.6 for ; Fri, 02 Aug 2013 09:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=OAd5WSLe2asZaeORTbcURxazv8yeraC5kVIjFM0WYRM=; b=SRTqh+rl3YAaf0ipGAUX7DCFQP0DOIs+hN6pt6ol03GHsxrA0/AHuHiS3oL7TQ7tpS FbEm8y7MHRALh/LrS2crLfhZGfyTXLYQ2Sodu+6YciDY0/gz5hfD0llqYRYMHpk2O+AU h4u4Hf9bbuQqVDIleuOE1rWcE4Kz7iFscVlBh2Xxq1/PfOd3OmuA1v496OLb808Fd15q 23/mkXxzF7M45LOvlFWr1+EW89BGhbITcjtEiqXlbSiUKRag1rmGvHL4dQ+Pxq4+1NFu kpRuGN5BQ3FqUY/jd3pfN2yeQffMGM/BhNp79KwatWxcL1joNTCXKMXYKKTcc58q3N0P GM3A== X-Received: by 10.220.20.3 with SMTP id d3mr2334609vcb.55.1375462060494; Fri, 02 Aug 2013 09:47:40 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.220.142.12 with HTTP; Fri, 2 Aug 2013 09:47:00 -0700 (PDT) Date: Fri, 2 Aug 2013 18:47:00 +0200 X-Google-Sender-Auth: m1PuSf7LKa0XDwKBtWrY12YV4hY Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=001a11c3b6de8495df04e2f9b7b8 Subject: Refactored magic methods From: jpauli@php.net (Julien Pauli) --001a11c3b6de8495df04e2f9b7b8 Content-Type: text/plain; charset=ISO-8859-1 Hi internals. I started a work of refactoring magic methods from internals. The first goal was to never write ourselves things like "__get", but use macros for those names. (get, set, invoke, etc...). A second goal was to rewrite some parts of the compiler which looked like code duplication which could benefit from macro refactoring. I did that. All tests pass. It may look uglier for people who dont like having more macros, but anyway, we can cherry pick some commits, etc... If you have ideas or things to say, I'm listening. https://github.com/jpauli/php-src/compare/macroing Julien.Pauli --001a11c3b6de8495df04e2f9b7b8--