Annotation of embedaddon/php/ext/standard/tests/class_object/get_object_vars_variation_001.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: get_object_vars() - ensure statics are not shown
! 3: --FILE--
! 4: <?php
! 5: /* Prototype : proto array get_object_vars(object obj)
! 6: * Description: Returns an array of object properties
! 7: * Source code: Zend/zend_builtin_functions.c
! 8: * Alias to functions:
! 9: */
! 10:
! 11: Class A {
! 12: public static $var = 'hello';
! 13: }
! 14:
! 15: $a = new A;
! 16: var_dump(get_object_vars($a));
! 17: ?>
! 18: --EXPECTF--
! 19: array(0) {
! 20: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>