File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
bug45910.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
1: --TEST--
2: Bug #45910 (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 => self::AAA
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
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>