Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14394 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24421 invoked by uid 1010); 15 Jan 2005 14:27:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35360 invoked by uid 1007); 15 Jan 2005 12:09:44 -0000 Message-ID: <20050115120944.35353.qmail@lists.php.net> To: internals@lists.php.net Date: Fri, 14 Jan 2005 11:10:37 -0200 Lines: 52 User-Agent: KNode/0.7.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Posted-By: 200.252.148.190 Subject: Interfaces and access types From: cunha17@uol.com.br (Cristiano Duarte) Hi all, Today I checked out the latest PHP-CVS and there is something I am really missing. This code: Now gives me this error: PHP Fatal error: Access type for interface method MyInterface::myStaticMethodDeclarationUsedToWorkNowDont() must be omitted in - on line 4 And if I do: interface MyInterface { function myStaticMethodDeclarationUsedToWorkNowDont(); } class MyClass implements MyInterface { public static function myStaticMethodDeclarationUsedToWorkNowDont() { } } ?> I get: PHP Fatal error: Cannot make non static method MyInterface::myStaticMethodDeclarationUsedToWorkNowDont() static in class MyClass in /webpages/sistemas2/RadFrame-lib/classes/radframe/x.php on line 6 I need a way to force a class to have a static method using interfaces. Now I can't do it anymore. Is it possible to put this feature back on CVS again ? Best Regards, Cristiano Duarte