Traits Patch Updated, Backported, and Available on GitHub

PHP 5.3 is already released for a while and starts to settle in.

Now it seems to be a good time to philosophize about the future language development of PHP again. To promote this discussion, I backported my Traits-patch to PHP 5.3, fixed some bugs, and used GitHub to publish it. Lets hope that this will allow a painless maintenance of the patch.

For the moment, there is no uptodate standalone patch file anymore, but only the GitHub repository.

For a basic introduction please refer to the RFC ( and the test cases available in the source folder Zend/tests/traits.

Tags: , , , , ,

3 Responses to “Traits Patch Updated, Backported, and Available on GitHub”

  1. Luke Moynihan September 5, 2009 at 04:18 #

    Hey Stefan, just wanted to say you are doing great work on your Traits proposal for PHP, I would love for PHP to have this kind of re-use. Thanks!

  2. Hari K T January 31, 2012 at 08:26 #

    The links are broken now . May be you want to update it .

  3. Stefan February 5, 2012 at 15:16 #

    Thanks. I fixed the links, but please be aware that the implementation is already in PHP 5.4.
    The code linked here is completely outdated and contains many known bugs fixed in the PHP SVN
    So, the best thing is to go and fetch the official code instead.