|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38219 abstract static functions not allowed anymore
Submitted: 2006-07-26 10:13 UTC Modified: 2006-08-07 08:35 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: php dot net at benjamin dot schulz dot name Assigned: helly (profile)
Status: Not a bug Package: Class/Object related
PHP Version: 5.2.0RC1 OS: linu
Private report: No CVE-ID: None
 [2006-07-26 10:13 UTC] php dot net at benjamin dot schulz dot name
abstract static functions aren't allowed anymore, but if they can be inherited they IMHO should be allowed to be made abstract

Reproduce code:
abstract class foo
	abstract static public function bar();

class bar extends foo
	static public function bar()

Actual result:
Fatal error: Static function foo::bar() cannot be abstract


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-26 16:38 UTC]
Marcus, if this change was intentional, we need to add a note to the NEWS file and fix the docs appropriately.
 [2006-08-07 08:35 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 17:01:33 2024 UTC