Skip to content

Commit 1152c18

Browse files
committed
- New test
1 parent 9dda408 commit 1152c18

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Zend/tests/bug45910_2.phpt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
--TEST--
2+
Bug #45910.2 (Cannot declare self-referencing constant)
3+
--FILE--
4+
<?php
5+
6+
class foo {
7+
const AAA = 'x';
8+
const BBB = 'a';
9+
const CCC = 'a';
10+
const DDD = self::AAA;
11+
12+
private static $foo = array(
13+
self::BBB=> 'a',
14+
self::CCC=> 'b',
15+
self::DDD=> 11
16+
);
17+
18+
public static function test() {
19+
self::$foo;
20+
}
21+
}
22+
23+
foo::test();
24+
25+
print 1;
26+
?>
27+
--EXPECT--
28+
1

0 commit comments

Comments
 (0)