| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2009-06-05 13:19 UTC] xsist10 at gmail dot com
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 04:00:01 2025 UTC | 
Description: ------------ get_class_methods returns the parents methods when called from a protected/public function in the parent from an inherited child. Reproduce code: --------------- class Foo { function getFunctions() { return get_class_methods(__CLASS__); } function test1() { } } class Bar extends Foo { function test2() { } } $bar = new Bar(); print_r($bar->getFunctions()); Expected result: ---------------- Array ( [0] => getFunctions [1] => test1 [2] => test2 ) Actual result: -------------- Array ( [0] => getFunctions [1] => test1 )