Hi!

What do you want parent::test() to mean?
Because it wasn't. parent::test() means A::test(). 'parent::' means 'parent class of the class where this statement is' in PHP. For B, it's A.
When you use parent in your code you generally want to add some plus functionality to the parent class. But in this case if you use the parent the behavior of the parent class changes too.


Best Regards,
Felhő

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to