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

From: Date: Mon, 07 Aug 2006 08:35:01 +0000
Subject: #38219 [Asn->Bgs]: abstract static functions not allowed anymore
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100447@lists.php.net to get a copy of this message
 ID:               38219
 Updated by:       helly@php.net
 Reported By:      php dot net at benjamin dot schulz dot name
-Status:           Assigned
+Status:           Bogus
 Bug Type:         Class/Object related
 Operating System: linu
 PHP Version:      5.2.0RC1
 Assigned To:      helly
 New Comment:

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




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

[2006-07-26 16:38:24] 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-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 (#100447) next »