mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
6b1073a3a7
In inheritance, if both methods are private, don not enforce the same signature.
21 lines
252 B
PHP
21 lines
252 B
PHP
--TEST--
|
|
Bug #62956: "incompatible" signatures for private methods should not cause E_STRICT
|
|
--FILE--
|
|
<?php
|
|
class Base
|
|
{
|
|
private function test()
|
|
{}
|
|
}
|
|
|
|
class Extension extends Base
|
|
{
|
|
private function test($arg)
|
|
{}
|
|
}
|
|
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
==DONE==
|