xref: /PHP-7.2/Zend/tests/bug41640.phpt (revision 1351bc4e)
1--TEST--
2Bug #41640 (get_class_vars produces error on class constants)
3--FILE--
4<?php
5class foo {
6        const FOO = 1;
7        public $x = self::FOO;
8}
9
10var_dump(get_class_vars("foo"));
11--EXPECT--
12array(1) {
13  ["x"]=>
14  int(1)
15}
16