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 up-to-date standalone patch file anymore, but only the GitHub repository.
- PHP 6: http://github.com/smarr/php-src/tree/PHP_6-traits
- PHP 5.3: http://github.com/smarr/php-src/tree/PHP_5_3-traits
For a basic introduction please refer to the RFC (http://wiki.php.net/rfc/horizontalreuse) and the test cases available in the source folder Zend/tests/traits.