summaryrefslogtreecommitdiff
path: root/Zend/tests/bug69676_2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug69676_2.phpt')
-rw-r--r--Zend/tests/bug69676_2.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/Zend/tests/bug69676_2.phpt b/Zend/tests/bug69676_2.phpt
new file mode 100644
index 0000000000..6ec3d499e5
--- /dev/null
+++ b/Zend/tests/bug69676_2.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Bug #69676: Resolution of self::FOO in class constants not correct (variation)
+--FILE--
+<?php
+
+class Foo {
+ const A = 'Foo::A';
+ const B = self::A . ' and ' . self::C;
+ const C = 'Foo::C';
+
+}
+
+class Bar extends Foo {
+ const A = 'Bar::A';
+ const C = 'Bar::C';
+}
+
+var_dump(Bar::B);
+
+?>
+--EXPECT--
+string(17) "Foo::A and Foo::C"