summaryrefslogtreecommitdiff
path: root/ext/standard/tests/class_object/get_object_vars_variation_001.phpt
blob: bd9d2ae98488e76b70f452a72080589e2db48e52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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) {
}