ID: 34455 User updated by: jumo at gmx dot de Reported By: jumo at gmx dot de Status: Open Bug Type: Documentation problem Operating System: debian gnu/linux PHP Version: Irrelevant New Comment:
and the search is not helpfull: http://www.php.net/manual-lookup.php?pattern=interface Previous Comments: ------------------------------------------------------------------------ [2005-09-10 14:44:27] jumo at gmx dot de Description: ------------ Hi, why aren't the functions class_implements and class_parents here: http://www.php.net/manual/en/ref.classobj.php 2nd: the documentation of class_implements reads class_implements -- Return the interfaces which are implemented by the given class but it should be changed to something like: class_implements -- Return the interfaces which are implemented by the given class and its parent classes. Reproduce code: --------------- <?php interface A {} interface B {} class C implements A {} class D extends C implements B {} class E extends D {} $e = new E; print_r( class_implements( $e )); ?> Expected result: ---------------- Array() Actual result: -------------- Array ( [A] => A [B] => B ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34455&edit=1