com php-src: my commits are bad, and I feel bad (test for bug #71414): Zend/tests/bug71414.phpt

From: Date: Sat, 26 Mar 2016 23:59:46 +0000
Subject: com php-src: my commits are bad, and I feel bad (test for bug #71414): Zend/tests/bug71414.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91494@lists.php.net to get a copy of this message
Commit: 32df2210d7c06c04216e079d28614e36ac87c325 Author: Joe Watkins <krakjoe@php.net> Sat, 26 Mar 2016 23:59:46 +0000 Parents: 4327370d1308eab3c611fc6994e67048a18f92ef Branches: PHP-7.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=32df2210d7c06c04216e079d28614e36ac87c325 Log: my commits are bad, and I feel bad (test for bug #71414) Bugs: https://bugs.php.net/71414 Changed paths: A Zend/tests/bug71414.phpt Diff: diff --git a/Zend/tests/bug71414.phpt b/Zend/tests/bug71414.phpt new file mode 100644 index 0000000..09f8b7d --- /dev/null +++ b/Zend/tests/bug71414.phpt @@ -0,0 +1,25 @@ +--TEST-- +Bug #71414 (Interface method override inherited method and implemented in a trait causes fatal error) +--FILE-- +<?php +interface InterfaceY { + public function z(): string; +} + +trait TraitY { + public function z(): string { + } +} + +class X { + public function z() { + } +} + +class Y extends X implements InterfaceY { + use TraitY; +} + +echo "ok"; +--EXPECT-- +ok

« previous php.cvs (#91494) next »