mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
15 lines
486 B
PHP
15 lines
486 B
PHP
--TEST--
|
|
Bug #43323 (Wrong count abstract methods)
|
|
--FILE--
|
|
<?php
|
|
abstract class bar {
|
|
abstract public function bar();
|
|
}
|
|
|
|
class foo extends bar {
|
|
}
|
|
--EXPECTF--
|
|
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bar has a deprecated constructor in %s on line %d
|
|
|
|
Fatal error: Class foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (bar::bar) in %sbug43323.php on line 7
|