mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +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==
|