# Traits for PHP, Patch for HEAD

- Thread: https://externals.io/message/42638
- Original archive: https://news-web.php.net/php.internals/42638
- Started by Stefan Marr on 2009-01-15T16:21:13+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

---

## #42638 — Stefan Marr — 2009-01-15T16:21:13+00:00

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

Hello internals,

the traits are back and up to date with the RFC.
Since there was not much discussion about the grafts idea, I  
implemented a new patch to give you the opportunity to test the  
proposed Traits on your own.

I have attached a patch for HEAD and an archive with test cases which  
are also the technical specification of what currently is possible  
with this patch.

Stuff like support for reflection will follow when the general idea  
finds enough friends, to be included.

Have fun with traits.
I am looking forward for your comments.

Best Regards
Stefan

---

## #42639 — Stefan Marr — 2009-01-15T16:31:11+00:00

URL: https://externals.io/message/42638#42639 · In reply to: #42638

Hm,

looks like the patch is missing.

Please find it here, if the attachment is missing again:
http://www.stefan-marr.de/traits/traits.patch
http://www.stefan-marr.de/traits/zend-tests-traits.bz2

Best Regards
Stefan
