php-src/ext/standard/tests/class_object/get_object_vars_variation_001.phpt

20 lines
373 B
Plaintext
Raw Normal View History

--TEST--
get_object_vars() - ensure statics are not shown
--FILE--
<?php
/* Prototype : proto array get_object_vars(object obj)
* Description: Returns an array of object properties
* Source code: Zend/zend_builtin_functions.c
* Alias to functions:
*/
Class A {
public static $var = 'hello';
}
$a = new A;
var_dump(get_object_vars($a));
?>
--EXPECTF--
array(0) {
}