summaryrefslogtreecommitdiff
path: root/Zend/tests/bug65419.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug65419.phpt')
-rw-r--r--Zend/tests/bug65419.phpt23
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/bug65419.phpt b/Zend/tests/bug65419.phpt
new file mode 100644
index 0000000000..677b2750f2
--- /dev/null
+++ b/Zend/tests/bug65419.phpt
@@ -0,0 +1,23 @@
+--TEST--
+Bug #65419 (Inside trait, self::class != __CLASS__)
+--FILE--
+<?php
+trait abc
+{
+ static function def()
+ {
+ echo self::class, "\n";
+ echo __CLASS__, "\n";
+ }
+}
+
+class ghi
+{
+ use abc;
+}
+
+ghi::def();
+?>
+--EXPECTF--
+ghi
+ghi \ No newline at end of file