php.net |  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
Votes:1
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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
38 - 36 = ?
Subscribe to this entry?

 
 [2006-07-26 10:13 UTC] php dot net at benjamin dot schulz dot name
Description:
------------
abstract static functions aren't allowed anymore, but if they can be inherited they IMHO should be allowed to be made abstract

Reproduce code:
---------------
<?php
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-26 16:38 UTC] tony2001@php.net
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] helly@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC