|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-10 15:01 UTC] guth at fiifo dot u-psud dot fr
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 19:00:01 2025 UTC |
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" }