ID:               30381
 Updated by:       [EMAIL PROTECTED]
 Reported By:      guth at fiifo dot u-psud dot fr
-Status:           Assigned
+Status:           Closed
 Bug Type:         Class/Object related
 Operating System: *
-PHP Version:      5CVS-2004-10-10 (dev)
+PHP Version:      5.0.2
 Assigned To:      helly


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

[2004-10-10 15:01:05] guth at fiifo dot u-psud dot fr

oops, i swaped expected and actual results. 
sorry :)

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

[2004-10-10 13:48:35] guth at fiifo dot u-psud dot fr

Description:
------------
I think that get_class_vars() should have the same 
behaviour that get_class_method(). 
The problem is that get_class_method() prints static 
methods, but get_class_vars() doesn't prints static 
properties. 
The documentation doesn't say anything on static 
properties, so i think that get_class_vars() should print 
static properties. 

Reproduce code:
---------------
<?php
class plop {
        public static $plip;
        public static function plip() { }
}

var_dump(get_class_methods('plop'));
var_dump(get_class_vars('plop'));
?>

Expected result:
----------------
array(1) { [0] => string(4) "plip" } 
array(0) {} 

Actual result:
--------------
array(1) { [0] => string(4) "plip" } 
array(1) { [0] => string(4) "plip" } 


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


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

Reply via email to