mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
20 lines
373 B
PHP
20 lines
373 B
PHP
--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) {
|
|
}
|