Re: RFC: Traits for PHP

From: Date: Tue, 19 Feb 2008 21:31:53 +0000
Subject: Re: RFC: Traits for PHP
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-35616@lists.php.net to get a copy of this message
traits the included trait is using). Ok this is the scope. Now we would need to adjust all those method bodies, find all method calls on $this->oldMethodName() and change them to $this->newMethodName().
You can't - PHP has dynamic method resolution (think $this->$foo()). Also, it has callbacks - what happens if method is registered as callback is renamed? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#35616) next »