Return to bug24445.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / classes |
1.1 ! misho 1: --TEST-- ! 2: Bug #24445 (get_parent_class() returns the current class when passed an object) ! 3: --FILE-- ! 4: <?php ! 5: class Test { } ! 6: var_dump(get_parent_class('Test')); ! 7: $t = new Test; ! 8: var_dump(get_parent_class($t)); ! 9: ?> ! 10: --EXPECT-- ! 11: bool(false) ! 12: bool(false)