ID:               30062
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Feature/Change Request
-Operating System: Irrelevant
+Operating System: *
-PHP Version:      5CVS-2004-09-11 (dev)
+PHP Version:      5*
 New Comment:

Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

Use Reflection API.


Previous Comments:
------------------------------------------------------------------------

[2004-09-11 01:27:41] [EMAIL PROTECTED]

Description:
------------
I was just thinking it might be nice to add an additional argument to
the get_class_* functions which takes a bit mask of the T_PRIVATE,
T_STATIC etc token constants to define what information you want
returned (i.e. only return static public methods)

- Davey

Reproduce code:
---------------
<?php
class foo {
    private function bar() { }
    public function baz() { }
    static public function bat { }
    protected function qux { }
}

var_dump(get_class_methods('foo', T_STATIC & T_PUBLIC));

Expected result:
----------------
array {
    [1] => 'bat'
}



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30062&edit=1

Reply via email to