diff options
author | Julien Pauli <jpauli@php.net> | 2014-10-29 14:35:51 +0100 |
---|---|---|
committer | Julien Pauli <jpauli@php.net> | 2014-11-28 13:24:25 +0100 |
commit | 7c77ca38b1e3ea7a707380c731b237c2c480e093 (patch) | |
tree | 3f53960d16eea3aacd25f5d0d41a74f446ddc15f /Zend/tests | |
parent | 42af41162026f3d8dfc86e7afbf860d3605e427a (diff) | |
download | php-git-7c77ca38b1e3ea7a707380c731b237c2c480e093.tar.gz |
Fix #65419 - Inside trait, self::class != __CLASS__
Diffstat (limited to 'Zend/tests')
-rw-r--r-- | Zend/tests/bug65419.phpt | 23 |
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 |