mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
20 lines
373 B
Plaintext
20 lines
373 B
Plaintext
|
--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) {
|
||
|
}
|