cvs: ZendEngine2 /tests bug45910_2.phpt
| From: | Felipe Pena | Date: | Mon, 25 Aug 2008 19:55:36 +0000 |
| Subject: | cvs: ZendEngine2 /tests bug45910_2.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-7109@lists.php.net to get a copy of this message | ||
felipe Mon Aug 25 19:55:36 2008 UTC
Added files:
/ZendEngine2/tests bug45910_2.phpt
Log:
- New test
http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug45910_2.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/bug45910_2.phpt
+++ ZendEngine2/tests/bug45910_2.phpt
--TEST--
Bug #45910.2 (Cannot declare self-referencing constant)
--FILE--
<?php
class foo {
const AAA = 'x';
const BBB = 'a';
const CCC = 'a';
const DDD = self::AAA;
private static $foo = array(
self::BBB => 'a',
self::CCC => 'b',
self::DDD => 11
);
public static function test() {
self::$foo;
}
}
foo::test();
print 1;
?>
--EXPECT--
1