xref: /PHP-8.2/Zend/tests/bug41640.phpt (revision 7aacc705)
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?>
12--EXPECT--
13array(1) {
14  ["x"]=>
15  int(1)
16}
17