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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php dot net at benjamin dot schulz dot name
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Mon Oct 14 04:01:27 2024 UTC