Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54190 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60692 invoked from network); 25 Jul 2011 17:22:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2011 17:22:00 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:62778] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/72-39076-636AD2E4 for ; Mon, 25 Jul 2011 13:21:59 -0400 Received: from [10.10.28.100] (unknown [67.23.204.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 87DF9774A3; Mon, 25 Jul 2011 19:21:54 +0200 (CEST) To: PHP internals list Cc: gron@php.net Content-Type: text/plain; charset="UTF-8" Date: Mon, 25 Jul 2011 10:21:49 -0700 Message-ID: <1311614509.2886.16.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 Content-Transfer-Encoding: 7bit Subject: Reflection, Traits, Aliasing From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Stefan, I recently tried to finalize reflection support for traits. Given code like Now I use reflection on this: $rc = new ReflectionClass('C'); print_r($rc->getTraitAliases()); Array ( [tc] => T1::t1 ) So far so nice but I'm missing the information where C::t1() is coming from. In the reflection code I'm currently iterating over ce->trait_aliases and can't find where I can get the information from. Actually I'd be even interested in getting all important methods and their origin. Stefan, do you know where I can find the information or would we have to store it additionally? johannes