2005/5/10, Sebastian Bergmann <[EMAIL PROTECTED]>: > Lukas Smith wrote: > > http://bugs.php.net/bug.php?id=30235 > > I agree with Marcus: self is bound at runtime, so the behaviour is > correct. If you do not like this late binding just do not use self but > the name of the class.
I don't agree with Marcus. Singleton or the name of the class are ugly workarounds for this bug. Every genuine OOP and dynamic language (ObjC, Ruby, Smalltalk) bounds self at runtime. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php