summaryrefslogtreecommitdiff
path: root/Zend/tests/bug41640.phpt
blob: 11ef334f457b0cd24cdd6e7d6f2e84c46231eaff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Bug #41640 (get_class_vars produces error on class constants)
--FILE--
<?php
class foo {
        const FOO = 1;
        public $x = self::FOO;
}

var_dump(get_class_vars("foo"));
--EXPECT--
array(1) {
  ["x"]=>
  int(1)
}
--UEXPECT--
array(1) {
  [u"x"]=>
  int(1)
}