From 1152c18e2aa6e0d941b599886ec11cadfada6751 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Mon, 25 Aug 2008 19:55:54 +0000 Subject: [PATCH] - New test --- Zend/tests/bug45910_2.phpt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Zend/tests/bug45910_2.phpt diff --git a/Zend/tests/bug45910_2.phpt b/Zend/tests/bug45910_2.phpt new file mode 100644 index 00000000000..68ca9a1176b --- /dev/null +++ b/Zend/tests/bug45910_2.phpt @@ -0,0 +1,28 @@ +--TEST-- +Bug #45910.2 (Cannot declare self-referencing constant) +--FILE-- + 'a', + self::CCC => 'b', + self::DDD => 11 + ); + + public static function test() { + self::$foo; + } +} + +foo::test(); + +print 1; +?> +--EXPECT-- +1