mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
251f293cb7
Use the line of the conflicting child method, rather than either the first or last line of the class.
27 lines
406 B
PHP
27 lines
406 B
PHP
--TEST--
|
|
Bug #62358 (Segfault when using traits a lot)
|
|
--FILE--
|
|
<?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) {
|
|
}
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Declaration of B::foo($var) must be compatible with A::foo() in %sbug62358.php on line 18
|