summaryrefslogtreecommitdiff
path: root/Zend/tests
diff options
context:
space:
mode:
authorJulien Pauli <jpauli@php.net>2014-10-29 14:35:51 +0100
committerJulien Pauli <jpauli@php.net>2014-11-28 13:24:25 +0100
commit7c77ca38b1e3ea7a707380c731b237c2c480e093 (patch)
tree3f53960d16eea3aacd25f5d0d41a74f446ddc15f /Zend/tests
parent42af41162026f3d8dfc86e7afbf860d3605e427a (diff)
downloadphp-git-7c77ca38b1e3ea7a707380c731b237c2c480e093.tar.gz
Fix #65419 - Inside trait, self::class != __CLASS__
Diffstat (limited to 'Zend/tests')
-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