#38219 [Opn->Asn]: abstract static functions not allowed anymore

From: Date: Wed, 26 Jul 2006 16:38:24 +0000
Subject: #38219 [Opn->Asn]: abstract static functions not allowed anymore
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-99941@lists.php.net to get a copy of this message
 ID:               38219
 Updated by:       tony2001@php.net
 Reported By:      php dot net at benjamin dot schulz dot name
-Status:           Open
+Status:           Assigned
 Bug Type:         Class/Object related
 Operating System: linu
 PHP Version:      5.2.0RC1
-Assigned To:      
+Assigned To:      helly
 New Comment:

Marcus, if this change was intentional, we need to add a note to the
NEWS file and fix the docs appropriately.


Previous Comments:
------------------------------------------------------------------------

[2006-07-26 10:13:05] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38219&edit=1


Thread (3 messages)

« previous php.bugs (#99941) next »