php-src/Zend/tests/bug62358.phpt

27 lines
406 B
Plaintext
Raw Normal View History

--TEST--
Bug #62358 (Segfault when using traits a lot)
--FILE--
2018-09-17 01:16:42 +08:00
<?php
trait T {
public function foo() {
echo "from T";
}
}
interface I {
public function foo();
}
abstract class A implements I{
use T;
}
class B extends A {
public function foo($var) {
2018-09-17 01:16:42 +08:00
}
}
?>
--EXPECTF--
Fatal error: Declaration of B::foo($var) must be compatible with A::foo() in %sbug62358.php on line 18