summaryrefslogtreecommitdiff
path: root/Zend/tests
diff options
context:
space:
mode:
authorJulien Pauli <jpauli@php.net>2014-11-28 13:31:53 +0100
committerJulien Pauli <jpauli@php.net>2014-11-28 13:31:53 +0100
commit96f2265d583310bcd9782d97460ba73cd64367f6 (patch)
tree74f368547a0a9d432e22595fe4a5873a879f2305 /Zend/tests
parent5f65c77e98fe2b49ad8b8fcd842ad6b20c999ea4 (diff)
parenta76f8e297d60201631021cc20526968fd0de4ef0 (diff)
downloadphp-git-96f2265d583310bcd9782d97460ba73cd64367f6.tar.gz
Merge branch 'PHP-5.6'
* PHP-5.6: updated NEWS updated NEWS Fix #65419 - Inside trait, self::class != __CLASS__ Conflicts: Zend/zend_compile.c
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