# Traits Patch available for Testing and Comments on PHP 5.3 and PHP 6

- Thread: https://externals.io/message/45453
- Original archive: https://news-web.php.net/php.internals/45453
- Started by Stefan Marr on 2009-09-02T21:49:38+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #45453 — Stefan Marr — 2009-09-02T21:49:38+00:00

URL: https://externals.io/message/45453#45453

Dear internals:

Has been a while since we discussed whether the idea
of Traits fits into the programming model of PHP.

To encourage further discussion and experiments,
I managed to update some tests, to fix some bugs,
and eventually to use GitHub to make it accessible to you.


Please find a version for PHP 5.3 at:
   http://github.com/gron/php-src/tree/PHP_5_3-traits

and a version for PHP 6 at:
   http://github.com/gron/php-src/tree/PHP_6-traits


For a basic introduction please refer to
   * the RFC:
     http://wiki.php.net/rfc/horizontalreuse
   * the test cases available in the source folder under:
     Zend/tests/traits
and of course ask my directly or on this list.

Best regards
Stefan

---

## #45483 — Arvids Godjuks — 2009-09-04T06:38:46+00:00

URL: https://externals.io/message/45453#45483 · In reply to: #45453

To me as a user-end developer this proposal sounds well thought throught and
consistent. This time I understood everything that is written in RFC ;)
Sorry I can't test it right now, but I definetly will give it a try.

2009/9/3 Stefan Marr <php@stefan-marr.de>

> Dear internals:
>
> Has been a while since we discussed whether the idea
> of Traits fits into the programming model of PHP.
>
> To encourage further discussion and experiments,
> I managed to update some tests, to fix some bugs,
> and eventually to use GitHub to make it accessible to you.
>
>
> Please find a version for PHP 5.3 at:
>  http://github.com/gron/php-src/tree/PHP_5_3-traits
>
> and a version for PHP 6 at:
>  http://github.com/gron/php-src/tree/PHP_6-traits
>
>
> For a basic introduction please refer to
>  * the RFC:
>    http://wiki.php.net/rfc/horizontalreuse
>  * the test cases available in the source folder under:
>    Zend/tests/traits
> and of course ask my directly or on this list.
>
> Best regards
> Stefan
